with open('filename.txt', "r") as word_list:
words = word_list.read().split('')
with open("file.txt", "w") as output:
output.write(str(words))
但是输出不像我希望的那样(我希望每行一个字)。我的道歉:我是python的初学者。在此先感谢您是否可以找出我如何根据列表中的索引使用python对单词进行排序。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句