ValueError:带基数10:‘的int()文本无效
ValueError: invalid literal for int() with base 10: ''.
file_to_read = raw_input("Enter file name of tests (empty string to end program):")try:
    infile = open(file_to_read, 'r')
    while file_to_read != " ":
        file_to_write = raw_input("Enter output file name (.csv will be appended to it):")
        file_to_write = file_to_write + ".csv"
        outfile = open(file_to_write, "w")
        readings = (infile.readline())
        print readings        while readings != 0:
            global count
            readings = int(readings)
            minimum = (infile.readline())
            maximum = (infile.readline())
千万里不及你
					慕码人2483693
					慕勒3428872
					明月笑刀无情
随时随地看视频慕课网APP
相关分类