python - invalid literal for int() with base 10: '\x03\xda\x01' 神奇的报错!
PHP中文网
PHP中文网 2017-04-18 09:51:19
0
1
416
            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中文网

认证高级PHP讲师

reply all(1)
大家讲道理

It is recommended to release try except first and see where the error is reported.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!