import sys try: f = open('myfile.txt') s = f.readline() i = int(s.strip()) except IOError as e: print ("I/O error({0}): {1}".format(e.errno, e.strerror)) ...
確定! 回上一頁