PTA1002 python3 字符相减不自动回车输出 字符相减 print(ord('5')-ord('2')) >>>3 不自动回车输出 a=['1','2','3'] import sys for i in a: sys.stdout.write(i) >>>123 交互环境下每次输出会多一个 ‘1’ ??? 实际上 print (a) 等价于 sys.stdout.write(a+'\n')