📜  如何使用 python cat 命令创建文件 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:22.455000             🧑  作者: Mango

代码示例1
import os
os.system("cat > brightness_control_in_python.py")
#if this error comes no worries your file is already created
'cat' is not recognized as an internal or external command,
operable program or batch file.
#take a look in your folder where you make python files you will find your file
#created there