摘要: reqwest数据格式: methods:{ getData:function () { var self = this; reqwest({ url:"http://swapi.co/api/people/?format=json", type:"json", method:"get", succ 阅读全文
posted @ 2017-07-04 18:38 MK3945 阅读(577) 评论(0) 推荐(0) 编辑
摘要: 今天git突然崩溃,崩溃时正在使用创建的新分支。等到重新进入,用git checkout master命令显示 If no other git process is currently running, this probably means agit process crashed in this 阅读全文
posted @ 2017-06-30 21:22 MK3945 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 在win7下安装了Python后,想安装python-MySQL,使用pip安装出现如下问题: >pip install mysql-python _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': 阅读全文
posted @ 2017-06-21 16:26 MK3945 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 很多新手都会在在电脑上面同时安装Python2和Python3,但是安装完两个版本以后pip如何使用?在命令行如何随心所欲的切换版本?下面我就来介绍一种方法:蛮简单的,亲测可用。 一、安装号两个版本,肯定要配置环境变量,这个就不多说了。 二、在Python安装好的盘里,找到Python.exe,然后 阅读全文
posted @ 2017-06-06 19:32 MK3945 阅读(2310) 评论(0) 推荐(0) 编辑
摘要: # -*- coding:utf-8 -*-#Author:Mr Gan不足之处:输入商品编号时必须是整型,其他类型会报错import sys balance = int(input("your money:")) shopping_bag = [] #创建购物包shopping_list = [[ 阅读全文
posted @ 2017-05-08 15:24 MK3945 阅读(275) 评论(0) 推荐(0) 编辑
摘要: # -*- coding:utf-8 -*-#Author:Mr Ganchina_map ={ "华南区": { "广东省":{"广州市":["越秀区","天河区"],"东莞市":["哥台区","沧桑区"]}, "海南省":{"海口市":["龙河区","丰台区"],"三亚市":["苍山区","晋安 阅读全文
posted @ 2017-05-08 13:10 MK3945 阅读(357) 评论(0) 推荐(0) 编辑
摘要: # -*- coding:utf-8 -*-#Author:Mr Ganimport syslimit_time = 3loggin_time = 0while loggin_time < limit_time: user = input('\033[31;1m username:\033[0m') 阅读全文
posted @ 2017-05-08 12:57 MK3945 阅读(288) 评论(0) 推荐(0) 编辑