Python-da hatto o'z ichiga o'rnatilgan veb-server ham mavjud bo'lib, uni Windows Powershell-da (yoki MacOS yoki Linux-da ekvivalenti) python joylashgan direktoriyani tanlab, kodni yozish orqali ishga tushirish mumkin: python3 -m http.server Biroq, hosting kodi uchun paketlardan foydalanish yaxshiroq bo'lishi mumkin. Bu http.server paketidan foydalangan holda kodning misoli (https://pythonbasics.org/webserver/ dan olingan misol): # Python 3 server misoli http.server import BaseHTTPRequestHandler, HTTPS import vaqti hostName = "localhost" server Port = 80 sinf MyServerBaseHTTPRequestHandler def_GET: self.end_response (yoki MacOS yoki Linuxda ekvivalenti) va kodni yozish orqali: python3 -
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence