Pythonのお勉強 Part5
■ このスレッドは過去ログ倉庫に格納されています
0515デフォルトの名無しさん
NGNGpython -c 'print file("input.txt").read().replace("foo", "bar")'
python -c 'print "".join(list(file("input.txt"))[m-1:n])'
python -c print "<html><body><pre>\n"+"\n".join([" ".join(["%2d" %((x+1)*(y+1)) for x in range(9)]) for y in range(9)])+"\n</pre></body></html>"'
python -c 'print "\n".join(["".join([s[0-i] for i in range(1, len(s)+1)]) for s in file("input.txt").read().strip().split("\n")])'
■ このスレッドは過去ログ倉庫に格納されています