【发布时间】:2014-02-03 10:02:29
【问题描述】:
如何在文本文件的特定列位置添加或替换某些字符串: 例如,我在下面给出的特定文件示例中有一句话:
Roxila almost lost
Roxila almost lost
Roxila almost lost
Roxila almost lost
Roxila almost lost
"enumerate()" 给出了类似的东西
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
R o x i l a a l m o s t l o s t
现在我想改变索引“6”,它是每行带有“*”的“空格”。像这样:
Roxila*almost lost
我怎样才能用 python 做到这一点。请帮忙
【问题讨论】: