搜尋

首頁  >  問答  >  主體

python - invalid literal for int() with base 10: '\x03\xda\x01' 神奇的报错!

            try:
                    line = mc_tc_get.get("test_pic")
                    #print "4:line", line
                    if line is None:
                            print "None1"
                            return path, None
                    line = line.rstrip("\n")
                    if line == "":
                            print "None2"
                            return path, None
                    tmp = line.split()
                    if(len(tmp)<7):
                            print "None3"
                            return path, None
            except Exception as  e:
                    print e
                    
                    
                    
                    
print e 报的这个错:invalid literal for int() with base 10: '\x03\xda\x01'
PHP中文网PHP中文网2809 天前448

全部回覆(1)我來回復

  • 大家讲道理

    大家讲道理2017-04-18 09:53:19

    建議先放開try except,看下哪裡報錯。

    回覆
    0
  • 取消回覆