-3
我得到以下錯誤:Python代碼錯誤(python3.4.4)
Traceback (most recent call last): File "C:\Python34\errorword.py",
line 16, in <module>
read_text() File "C:\Python34\errorword.py", line 9, in read_text
check_profanity(contents_of_file) File "C:\Python34\errorword.py", line 12, in check_profanity
connection = urllib.urlopen(" http://www.wdyl.com/profanity?q="+text_to_check) AttributeError:
'module' object has no attribute 'urlopen'
秀您的代碼有問題 –