求教啊!弄了好久也没弄明白这是个什么情况?新手,求教!
真心求教啊!!
[解决办法]
按报错,s估计是byte的吧...
>>> b'' + '%s%s'
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
b'' + '%s%s'
TypeError: can't concat bytes to str
[解决办法]
while d and l and (num<0 or line<num):
s=l[:-1]
s=str(s) ## 加上一句转换试试