摘要: win移植linux python执行shell脚本 os.system("command") os.popen("command") os.popen() 返回的是一个文件对象 subprocess.call() print(subprocess.call(["ls","-l"],shell=Fa 阅读全文
posted @ 2020-07-29 18:06 friedCoder 阅读(163) 评论(0) 推荐(0) 编辑
摘要: iterable 与 iterator range returns an iterable, not an iterator. To get an iterator, you need to call iter() >>> x = range(20) >>> next(x) TypeError: ' 阅读全文
posted @ 2020-07-29 17:18 friedCoder 阅读(110) 评论(0) 推荐(0) 编辑
摘要: anaconda winerror 127找不到指定的程序 现象**:conda install package 时,报错 winerror 127找不到指定的程序。 环境:win 10 + anaconda 4.8.0 / python 3.7。 解决(亲测):参考帖子https://github 阅读全文
posted @ 2020-07-29 10:07 friedCoder 阅读(247) 评论(0) 推荐(0) 编辑