这是一些python3代码,我找不到其中的错误:
httpurl = "http://okgift.ru/audio/Servantes/Don-Kihot/"
httpurl = string(httpurl)
mp3 = 1
mp3 = int(mp3)
ext = ".mp3"
ext = string(ext)
while mp3 < 332:
final = httpurl+mp3+ext
print(final)
mp3 = mp3+1
错误:
Traceback (most recent call last):
File "prog.py", line 2, in <module>
httpurl = string(httpurl)
NameError: name 'string' is not defined
这是在线的:http: //ideone.com/u0ZBo2