摘要: 先看os.walk(path)的返回值: `In [6]: for root_dir, dir_names, file_names in os.walk("C:\Users\Administrator"): ...: print(root_dir,type(root_dir)) ...: print 阅读全文
posted @ 2022-05-03 21:40 盈盈的月儿 阅读(137) 评论(0) 推荐(0) 编辑
摘要: import argparse def _argparse(): parser = argparse.ArgumentParser(description='A Python-MySQL client') # 增加长参数required表示必填;action=store表示会把这个变量存起来,des 阅读全文
posted @ 2022-05-03 20:58 盈盈的月儿 阅读(217) 评论(0) 推荐(0) 编辑