摘要: ls = list(i for i in range(10)) ####快速创建了一个里面都是整数的list ln = list(str(i) for i in range(10)) ####快速创建了一个里面都是字符串的list 阅读全文
posted @ 2018-05-16 17:27 soranao 阅读(185) 评论(0) 推荐(0) 编辑
摘要: #/usr/bin/env python#yehui import os, sys ''' try: os.mkdir('userinfo')except FileExistsError: print("文件夹已存在跳过") ''' ####判断对应目录是否存在 class PathJudge: c 阅读全文
posted @ 2018-05-16 15:53 soranao 阅读(781) 评论(0) 推荐(0) 编辑