目前,我有这段Python 2.7代码: h = 0 for line in fileinput.input('HISTORY',inplace=1): if line[0:2] == x: h = h + 1 if h in AU: line = line.replace(x,'AU') ...
確定! 回上一頁