Найти - Пользователи
Полная версия: url.split(???)
Начало » Python для новичков » url.split(???)
1
Egor2010
url="https://site.com"
a={
'http://': 1,
'https://': 1,
'ftp://': 1
}
a = a.get(url.split(???)[0].lower())
что надо вставить место “???” чтобы в a=1?
url="http://www.site.com"
terabayt
a = a.get(url.split('://')[0].lower()+'://')
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB