1
A
回答
0
中,你可以使用Python subprocess
与Windows的命令行工具的评论说。格式化可以使用format
来完成(Running windows shell commands with python < - 你也可以使用diskpart
本)
进行分区,你可以结合一个批处理文件中使用diskpart
工具。缺点是,你必须保存批处理文件的计算机
与以下你可以从蟒蛇调用批处理文件
from subprocess import Popen
p = Popen("batch.bat", cwd=r"C:\Path\to\batchfolder")
stdout, stderr = p.communicate()
相关问题
- 1. 格式化在Python 2.7
- 2. 使用python 2.7和BS4重新格式化HTML
- 3. 使用分区格式化表格
- 4. 在python误导`ValueError`坏格式化2.7
- 5. Python 2.7:JSONP的字符串格式化
- 6. Python 2.7中的分区。和3.3
- 7. 在Python 2.7中区分f()和f(** kwargs)
- 8. python + matplotlib:使用区域设置来格式化y轴
- 9. 格式化字符串2.7
- 10. Python 2.7中的日期解析和格式化
- 11. Python 2.7字符串格式
- 12. 使用Python/Pandas格式化
- 13. UnicodeDecodeError使用TextBlob和Python 2.7
- 14. 使用ffmpeg和Python 2.7
- 15. 格式化部分
- 16. 使用Python 2.7
- 17. 红宝石复数格式化分区
- 18. 格式化秒和分钟
- 19. 使用变量格式化python的格式化字符串
- 20. 使用Python 2.7完成网络表格
- 21. Python 2.7格式化数据写入为csv
- 22. 使用BCD格式的数字分区
- 23. Python 2.7 CSV图形时间格式
- 24. Python 2.7 CSV写入格式不正确
- 25. Python 2.7中的旧式和新式类?
- 26. 使用matplotlib,python 2.7
- 27. python使用scapy 2.7
- 28. Python字符串格式化中%s和%d有什么区别?
- 29. Python 2.7使用记忆改进递归pollard rho因式分解
- 30. cx_oracle和python 2.7
是有一种方法... :) –
是的,通过系统调用。你在使用什么操作系统? – zwer
我正在使用Windows 7,也将该信息添加到问题中。 – user3215564