摘要: 转自:https://www.cnblogs.com/yuanchenqi/artcles/5732581.html os.getcwd() 获取当前工作目录,即当前python脚本工作的目录路径os.chdir("dirname") 改变当前脚本工作目录;相当于shell下cdos.curdir 阅读全文
posted @ 2019-11-23 18:36 千焱 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 1.time模块 a.时间戳:print(time.time()) 从1970年到现在的时间,秒数 import time print(time.time()) >>>1574484999.1928408 b.结构化时间:time.localtime()/time.gmtime() >gmtime是 阅读全文
posted @ 2019-11-23 13:26 千焱 阅读(239) 评论(0) 推荐(0) 编辑