Texnologik jarayonlarni boshqarishda axborot texnalogiyalarini qo’llash


Download 56.5 Kb.
bet1/3
Sana24.12.2022
Hajmi56.5 Kb.
#1054038
  1   2   3
Bog'liq
dep-materiallar-varaq


Deponentlanadigan materiallarning titul varag‘i
EHM uchun dastur (Ma’lumotlar bazasi) nomi:
"Texnologik jarayonlarni boshqarishda axborot texnalogiyalarini qo’llash" elektron darslik
Huquq ega(lar)si :

  1. Pirnazarov Ulug’bek Umataliyevich____________________________

  2. _________________________________________________________

  3. _________________________________________________________

Muallif(lar):



  1. Jo'rayev Dilshodbek Maxsutali o'g'li____________________________

  2. _________________________________________________________


EHM uchun dasturni identifikatsiya qiluvchi materiallar dastlabki matni (Dastur kodi)
import io
import mimetypes

from lxml import etree


mimetype_initialised = False


def debug(obj):
import pprint

pp = pprint.PrettyPrinter(indent=4)
pp.pprint(obj)


def parse_string(s):
parser = etree.XMLParser(recover=True, resolve_entities=False)
try:
tree = etree.parse(io.BytesIO(s.encode('utf-8')) , parser=parser)
except:
tree = etree.parse(io.BytesIO(s) , parser=parser)

return tree


def parse_html_string(s):
from lxml import html

utf8_parser = html.HTMLParser(encoding='utf-8')

html_tree = html.document_fromstring(s, parser=utf8_parser)

return html_tree


def guess_type(extenstion):
global mimetype_initialised

if not mimetype_initialised:
mimetypes.init()
mimetypes.add_type('application/xhtml+xml', '.xhtml')
mimetype_initialised = True


Download 56.5 Kb.

Do'stlaringiz bilan baham:
  1   2   3




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling