摘要: 1、下载GoSublime 官网地址:https://github.com/DisposaBoy/GoSublime.git 2、打开sublime插件位置 添加GoSublime插件 关闭sublime,重新打开,此时在Prefernces->Package Settines中可以看到GoSubl 阅读全文
posted @ 2019-03-22 11:21 韩家姐姐 阅读(1252) 评论(0) 推荐(0) 编辑
摘要: import os print os.name #windows 是nt,linux是posix print sys.platform #windows显示win32,linux显示linux 阅读全文
posted @ 2018-07-30 20:48 韩家姐姐 阅读(108) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8import osimport time import xlwtfilename="test_xlwt.xls"if os.path.exists(filename): os.remove(filename)def set_color(color,bold): style= 阅读全文
posted @ 2018-07-26 10:37 韩家姐姐 阅读(3133) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8import urllibs={"username":"hhh","password":"XXXX"}#urllib.urlencode url编码s=urllib.urlencode(s)print ss_encode=urllib.unquote("username=h 阅读全文
posted @ 2018-07-26 10:35 韩家姐姐 阅读(5322) 评论(0) 推荐(0) 编辑
摘要: 安装好java1.8、jmeter4.0,并java -version正常,jmeter也能正常使用。某一次使用突然出现Not able to find Java executable or version,查看java -version,正常。 1、检查环境变量 将path中的%JAVA_HOME 阅读全文
posted @ 2018-07-21 11:35 韩家姐姐 阅读(1845) 评论(0) 推荐(0) 编辑
摘要: options->look and feel 阅读全文
posted @ 2018-07-21 11:15 韩家姐姐 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 在下载页面会有2种下载分类,一个是Binaries,一个是source,一般开放原代码软件都会有两个版本发布: Source Distribution 和 Binary Distribution ,二者有啥区别?Source 是源代码版,你需要自己编译成可执行软件。 Binaries是可执行版,直接 阅读全文
posted @ 2018-07-21 10:19 韩家姐姐 阅读(951) 评论(0) 推荐(0) 编辑
摘要: 1、安装wheel pip install wheel 2、通过二进制文件安装第三方库,需要在安装前确定好能够安装的版本。 确认方法如下: 在cmd中,输入python进入python(也可在IDE中进行)。 然后输入 import pip print(pip.pep425tags.get_supp 阅读全文
posted @ 2018-06-26 21:16 韩家姐姐 阅读(404) 评论(0) 推荐(0) 编辑
摘要: TypeError: Decimal('1457501') is not JSON serializable 在使用json的时候经常会遇到xxx is not JSON serializable,也就是无法序列化某些对象 import decimal class DecimalEncoder(js 阅读全文
posted @ 2018-06-25 11:19 韩家姐姐 阅读(14437) 评论(0) 推荐(0) 编辑
摘要: import jsonfrom collections import OrderedDictmetadata = json.loads(text, object_pairs_hook=OrderedDict);metadata中properties的顺序是跟text中定义的顺序是一样的。 阅读全文
posted @ 2018-06-12 10:25 韩家姐姐 阅读(1073) 评论(0) 推荐(0) 编辑