возможно это сделать вообще
написать свой сайт, где будут хранится мои файлы
Как это реализовать?
.decode('utf-8')
это отношение не имеет, т.к. °
, который вы видите, это результат кодирования символа в HTML-entities, а не в кодировку документа.html.unescape()
, которую вы применяете к переменной temp в produce_output()
.html.unescape()
не обёрнута. мне не понятно все ли в нем используемые библиотеки есть под 3ю версию python
очень не хочется его редактировать
как его перевести на 3ю версию
from time import sleep
import webbrowser
def dialog():
print("Привет!")
while True: # Бесконечный цикл пока не будет вызвана инструкция break
user = input("--> ")
if user == "привет":
print("Как дела?")
elif user == "отлично":
print("Молодец, так держать!")
break
elif user == "хорошо":
print("Я за тебя рад!")
break
elif user == "не очень":
print("А что случилось?")
user = input("--> ")
if user == "не могу выстроить логическую цепочку":
print("Одну минуточку...")
sleep(3)
webbrowser.open("https://pythonworld.ru/osnovy/instrukciya-if-elif-else-proverka-istinnosti-trexmestnoe-vyrazhenie-ifelse.html")
else:
break
input("Программа завершила свою работу для выхода нажмите Enter")
dialog()
Hostnames are composed of series of labels concatenated with dots, as are all domain names. For example, "en.wikipedia.org" is a hostname. Each label must be between 1 and 63 characters long, and the entire hostname (including the delimiting dots but not a trailing dot) has a maximum of 253 ASCII characters.
The Internet standards for protocols mandate that component hostname labels may contain only the ASCII letters 'a' through 'z' (in a case-insensitive manner), the digits '0' through '9', and the hyphen ('-'). The original specification of hostnames in RFC 952, mandated that labels could not start with a digit or with a hyphen, and must not end with a hyphen. However, a subsequent specification (RFC 1123) permitted hostname labels to start with digits. No other symbols, punctuation characters, or white space are permitted.