if line.startswith(’@’) and not flag:
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
python2的程序,在python3下运行会报错。
改用pyhton2后正常了。以后脚本中一定区分开python与python2和python3.
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
最新推荐文章于 2025-03-05 21:33:03 发布