摘要:
os.getcwd() 获取当前工作目录,即当前python脚本工作的目录路径os.chdir("dirname") 改变当前脚本工作目录;相当于shell下cdos.curdir 返回当前目录: ('.')os.pardir 获取当前目录的父目录字符串名:('..')os.makedirs('di 阅读全文
posted @ 2019-11-07 10:59
len1028
阅读(149)
评论(0)
推荐(0)
摘要:
time 模块 print(time.strftime('%Y-%m-%d %T')) 2019-11-07 09:28:06 把时间戳转换为日期 print(time.localtime(1533458405.330393)) time.struct_time(tm_year=2018, tm_m 阅读全文
posted @ 2019-11-07 10:12
len1028
阅读(158)
评论(0)
推荐(0)

浙公网安备 33010602011771号