# Collect all the files you need to beautify in "files"
#Loop through each C/C++ file
for file in files:
command = "astyle " + file
import subprocess
process = subprocess.Popen(command.split(), stdout=subprocess.PIPE)
output, error = process.communicate()
编写一个Python脚本,调用C++美化器,如艺术风格。你知道吗
http://astyle.sourceforge.net/
下面是python脚本的外观:
艺术风格的使用举例如下:
或者
相关问题 更多 >
编程相关推荐