我感觉这个问题以前已经回答过很多次了,但我找不到任何东西。
我有一个脚本,它将文本作为命令行参数,然后生成包含文本的图像。它为在命令行中输入的每个单词生成图像,但我不知道如何保存它们。我想这样拯救他们;第一个图像将保存为 0001.png,第二个图像将保存为 0002.png 等等,我该怎么做?
python text file auto-generate python-3.x
auto-generate ×1
file ×1
python ×1
python-3.x ×1
text ×1