#查看数据类型
data="123"
print(type(data) ) # 输出 :<class 'str'>
#中文转bytes
print("中".encode('unicode_escape')) # unicode编码输出: b'\\u4e2d'
类知识
https://www.cnblogs.com/liangxiyang/p/11059272.html
Python处理csv、xlsx、pdf
https://my.oschina.net/u/3314358/blog/1827101
时间函数
jsontime = '2017-04-03'
#string->time
time.strptime(jsontime,"%Y-%m-%d")
#string->datetime
datetime.datetime.strptime(jsontime,"%Y-%m-%d")
#time->string
time.strftime("%y-%m-%d",time.localtime())
python 画图——python可视化、画图之第三方库matplotlib库基础以及应用实例