urllib.quote()ผมอยากจะใช้ แต่ python (python3) ไม่พบโมดูล สมมติว่าฉันมีรหัสบรรทัดนี้:
print(urllib.quote("châteu", safe=''))
ฉันจะนำเข้า urllib.quote ได้อย่างไร
import urllibหรือ
import urllib.quoteทั้งสองอย่างให้
AttributeError: 'module' object has no attribute 'quote'
สิ่งที่ทำให้ฉันสับสนurllib.requestคือสามารถเข้าถึงได้ทางimport urllib.request