ここにいくつかの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