可能有人可以帮助我NameError:未定义名称“ urllib”:
for asu in passe :
curl = url+asu
try :
openurl = urllib.request.urlopen(curl)
print("_____________________________________________________________")
print(" ")
print("\033[92m LIVE : "+curl)
print("_____________________________________________________________")
except urllib.error.URLError as msg :
print ("\033[91m DIE : "+curl)
答案 0 :(得分:1)
在代码导入带有 constructor({
type,
displayName,
isEnabled
}: {
type: // whatever ComponentType.defaultComponent is
displayName: string,
isEnabled: boolean
}) {
的urllib模块之前