我需要打开一个文本文件,然后在每行的末尾添加一个字符串.
至今:
appendlist = open(sys.argv[1], "r").read()
python string
python ×1
string ×1