<<--B站..........欢迎来到DGX的博客..........GitHub-->>

我的B站
摘要: os.system执行linux命令,返回值为0:代表成功;1:代表失败 os.popen执行linux命令,read获取返回值,可以连续执行多条命令,如下 连续执行多条命令 os.popen("cd.. && cd demo && touch 2.py ") 注意: 1. 命令被分号“;”分隔,这 阅读全文
posted @ 2021-04-22 18:57 DG息 阅读(959) 评论(0) 推荐(0) 编辑