摘要: os模块 # 显示当前使用平台:"nt":windows;"posix":Linux >>> os.name 'nt' # 当前工作目录 >>> os.getcwd() 'D:\\python_file' # 执行系统操作指令 >>> os.system("echo 'hello world'") 阅读全文
posted @ 2018-09-03 10:25 苟住,别浪 阅读(208) 评论(0) 推荐(0) 编辑