2019年6月19日

摘要: #时间戳 从计算机诞生的那一天到现在过了多少秒#格式化好的时间import timeprint(time.strftime('%Y%m%d%H%M%S'))#取当前的时间,格式化好的print(time.time())# print(1560674704 + 60*60*24*365*10)#时间戳 阅读全文
posted @ 2019-06-19 15:06 静思的技术博客 阅读(258) 评论(0) 推荐(0) 编辑
摘要: import os# print(os.listdir(r'/Users/nhy/PycharmProjects/cnz/day2'))#列出某个目录下面的文件夹/文件# print(os.path.isfile('passwords.txt'))# print(os.path.isdir('pas 阅读全文
posted @ 2019-06-19 11:43 静思的技术博客 阅读(127) 评论(0) 推荐(0) 编辑

导航