try: while True: n = int(input()) print("'C' can use printf(" '"%d"' ",n); to show integer like" ,n) except EOFError: pass要注意單雙引號;尤其在%d那裡