【代码】Python通过后缀判断Content-Type类型

简介: 【代码】Python通过后缀判断Content-Type类型
if houzhui == 'load':
    att1["Content-Type"] = 'text/html'
elif houzhui == '123':
    att1["Content-Type"] = 'application/vnd.lotus-1-2-3'
elif houzhui == '3ds':
    att1["Content-Type"] = 'image/x-3ds'
elif houzhui == '3g2':
    att1["Content-Type"] = 'video/3gpp'
elif houzhui == '3ga':
    att1["Content-Type"] = 'video/3gpp'
elif houzhui == '3gp':
    att1["Content-Type"] = 'video/3gpp'
elif houzhui == '3gpp':
    att1["Content-Type"] = 'video/3gpp'
elif houzhui == '602':
    att1["Content-Type"] = 'application/x-t602'
elif houzhui == '669':
    att1["Content-Type"] = 'audio/x-mod'
elif houzhui == '7z':
    att1["Content-Type"] = 'application/x-7z-compressed'
elif houzhui == 'a':
    att1["Content-Type"] = 'application/x-archive'
elif houzhui == 'aac':
    att1["Content-Type"] = 'audio/mp4'
elif houzhui == 'abw':
    att1["Content-Type"] = 'application/x-abiword'
elif houzhui == 'abw.crashed':
    att1["Content-Type"] = 'application/x-abiword'
elif houzhui == 'abw.gz':
    att1["Content-Type"] = 'application/x-abiword'
elif houzhui == 'ac3':
    att1["Content-Type"] = 'audio/ac3'
elif houzhui == 'ace':
    att1["Content-Type"] = 'application/x-ace'
elif houzhui == 'adb':
    att1["Content-Type"] = 'text/x-adasrc'
elif houzhui == 'ads':
    att1["Content-Type"] = 'text/x-adasrc'
elif houzhui == 'afm':
    att1["Content-Type"] = 'application/x-font-afm'
elif houzhui == 'ag':
    att1["Content-Type"] = 'image/x-applix-graphics'
elif houzhui == 'ai':
    att1["Content-Type"] = 'application/illustrator'
elif houzhui == 'aif':
    att1["Content-Type"] = 'audio/x-aiff'
elif houzhui == 'aifc':
    att1["Content-Type"] = 'audio/x-aiff'
elif houzhui == 'aiff':
    att1["Content-Type"] = 'audio/x-aiff'
elif houzhui == 'al':
    att1["Content-Type"] = 'application/x-perl'
elif houzhui == 'alz':
    att1["Content-Type"] = 'application/x-alz'
elif houzhui == 'amr':
    att1["Content-Type"] = 'audio/amr'
elif houzhui == 'ani':
    att1["Content-Type"] = 'application/x-navi-animation'
elif houzhui == 'anim[1-9j]':
    att1["Content-Type"] = 'video/x-anim'
elif houzhui == 'anx':
    att1["Content-Type"] = 'application/annodex'
elif houzhui == 'ape':
    att1["Content-Type"] = 'audio/x-ape'
elif houzhui == 'arj':
    att1["Content-Type"] = 'application/x-arj'
elif houzhui == 'arw':
    att1["Content-Type"] = 'image/x-sony-arw'
elif houzhui == 'as':
    att1["Content-Type"] = 'application/x-applix-spreadsheet'
elif houzhui == 'asc':
    att1["Content-Type"] = 'text/plain'
elif houzhui == 'asf':
    att1["Content-Type"] = 'video/x-ms-asf'
elif houzhui == 'asp':
    att1["Content-Type"] = 'application/x-asp'
elif houzhui == 'ass':
    att1["Content-Type"] = 'text/x-ssa'
elif houzhui == 'asx':
    att1["Content-Type"] = 'audio/x-ms-asx'
elif houzhui == 'atom':
    att1["Content-Type"] = 'application/atom+xml'
elif houzhui == 'au':
    att1["Content-Type"] = 'audio/basic'
elif houzhui == 'avi':
    att1["Content-Type"] = 'video/x-msvideo'
elif houzhui == 'aw':
    att1["Content-Type"] = 'application/x-applix-word'
elif houzhui == 'awb':
    att1["Content-Type"] = 'audio/amr-wb'
elif houzhui == 'awk':
    att1["Content-Type"] = 'application/x-awk'
elif houzhui == 'axa':
    att1["Content-Type"] = 'audio/annodex'
elif houzhui == 'axv':
    att1["Content-Type"] = 'video/annodex'
elif houzhui == 'bak':
    att1["Content-Type"] = 'application/x-trash'
elif houzhui == 'bcpio':
    att1["Content-Type"] = 'application/x-bcpio'
elif houzhui == 'bdf':
    att1["Content-Type"] = 'application/x-font-bdf'
elif houzhui == 'bib':
    att1["Content-Type"] = 'text/x-bibtex'
elif houzhui == 'bin':
    att1["Content-Type"] = 'application/octet-stream'
elif houzhui == 'blend':
    att1["Content-Type"] = 'application/x-blender'
elif houzhui == 'blender':
    att1["Content-Type"] = 'application/x-blender'
elif houzhui == 'bmp':
    att1["Content-Type"] = 'image/bmp'
elif houzhui == 'bz':
    att1["Content-Type"] = 'application/x-bzip'
elif houzhui == 'bz2':
    att1["Content-Type"] = 'application/x-bzip'
elif houzhui == 'c':
    att1["Content-Type"] = 'text/x-csrc'
elif houzhui == 'c++':
    att1["Content-Type"] = 'text/x-c++src'
elif houzhui == 'cab':
    att1["Content-Type"] = 'application/vnd.ms-cab-compressed'
elif houzhui == 'cb7':
    att1["Content-Type"] = 'application/x-cb7'
elif houzhui == 'cbr':
    att1["Content-Type"] = 'application/x-cbr'
elif houzhui == 'cbt':
    att1["Content-Type"] = 'application/x-cbt'
elif houzhui == 'cbz':
    att1["Content-Type"] = 'application/x-cbz'
elif houzhui == 'cc':
    att1["Content-Type"] = 'text/x-c++src'
elif houzhui == 'cdf':
    att1["Content-Type"] = 'application/x-netcdf'
elif houzhui == 'cdr':
    att1["Content-Type"] = 'application/vnd.corel-draw'
elif houzhui == 'cer':
    att1["Content-Type"] = 'application/x-x509-ca-cert'
elif houzhui == 'cert':
    att1["Content-Type"] = 'application/x-x509-ca-cert'
elif houzhui == 'cgm':
    att1["Content-Type"] = 'image/cgm'
elif houzhui == 'chm':
    att1["Content-Type"] = 'application/x-chm'
elif houzhui == 'chrt':
    att1["Content-Type"] = 'application/x-kchart'
elif houzhui == 'class':
    att1["Content-Type"] = 'application/x-java'
elif houzhui == 'cls':
    att1["Content-Type"] = 'text/x-tex'
elif houzhui == 'cmake':
    att1["Content-Type"] = 'text/x-cmake'
elif houzhui == 'cpio':
    att1["Content-Type"] = 'application/x-cpio'
elif houzhui == 'cpio.gz':
    att1["Content-Type"] = 'application/x-cpio-compressed'
elif houzhui == 'cpp':
    att1["Content-Type"] = 'text/x-c++src'
elif houzhui == 'cr2':
    att1["Content-Type"] = 'image/x-canon-cr2'
elif houzhui == 'crt':
    att1["Content-Type"] = 'application/x-x509-ca-cert'
elif houzhui == 'crw':
    att1["Content-Type"] = 'image/x-canon-crw'
elif houzhui == 'cs':
    att1["Content-Type"] = 'text/x-csharp'
elif houzhui == 'csh':
    att1["Content-Type"] = 'application/x-csh'
elif houzhui == 'css':
    att1["Content-Type"] = 'text/css'
elif houzhui == 'cssl':
    att1["Content-Type"] = 'text/css'
elif houzhui == 'csv':
    att1["Content-Type"] = 'text/csv'
elif houzhui == 'cue':
    att1["Content-Type"] = 'application/x-cue'
elif houzhui == 'cur':
    att1["Content-Type"] = 'image/x-win-bitmap'
elif houzhui == 'cxx':
    att1["Content-Type"] = 'text/x-c++src'
elif houzhui == 'd':
    att1["Content-Type"] = 'text/x-dsrc'
elif houzhui == 'dar':
    att1["Content-Type"] = 'application/x-dar'
elif houzhui == 'dbf':
    att1["Content-Type"] = 'application/x-dbf'
elif houzhui == 'dc':
    att1["Content-Type"] = 'application/x-dc-rom'
elif houzhui == 'dcl':
    att1["Content-Type"] = 'text/x-dcl'
elif houzhui == 'dcm':
    att1["Content-Type"] = 'application/dicom'
elif houzhui == 'dcr':
    att1["Content-Type"] = 'image/x-kodak-dcr'
elif houzhui == 'dds':
    att1["Content-Type"] = 'image/x-dds'
elif houzhui == 'deb':
    att1["Content-Type"] = 'application/x-deb'
elif houzhui == 'der':
    att1["Content-Type"] = 'application/x-x509-ca-cert'
elif houzhui == 'desktop':
    att1["Content-Type"] = 'application/x-desktop'
elif houzhui == 'dia':
    att1["Content-Type"] = 'application/x-dia-diagram'
elif houzhui == 'diff':
    att1["Content-Type"] = 'text/x-patch'
elif houzhui == 'divx':
    att1["Content-Type"] = 'video/x-msvideo'
elif houzhui == 'djv':
    att1["Content-Type"] = 'image/vnd.djvu'
elif houzhui == 'djvu':
    att1["Content-Type"] = 'image/vnd.djvu'
elif houzhui == 'dng':
    att1["Content-Type"] = 'image/x-adobe-dng'
elif houzhui == 'doc':
    att1["Content-Type"] = 'application/msword'
elif houzhui == 'docbook':
    att1["Content-Type"] = 'application/docbook+xml'
elif houzhui == 'docm':
    att1["Content-Type"] = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
elif houzhui == 'docx':
    att1["Content-Type"] = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
elif houzhui == 'dot':
    att1["Content-Type"] = 'text/vnd.graphviz'
elif houzhui == 'dsl':
    att1["Content-Type"] = 'text/x-dsl'
elif houzhui == 'dtd':
    att1["Content-Type"] = 'application/xml-dtd'
elif houzhui == 'dtx':
    att1["Content-Type"] = 'text/x-tex'
elif houzhui == 'dv':
    att1["Content-Type"] = 'video/dv'
elif houzhui == 'dvi':
    att1["Content-Type"] = 'application/x-dvi'
elif houzhui == 'dvi.bz2':
    att1["Content-Type"] = 'application/x-bzdvi'
elif houzhui == 'dvi.gz':
    att1["Content-Type"] = 'application/x-gzdvi'
elif houzhui == 'dwg':
    att1["Content-Type"] = 'image/vnd.dwg'
elif houzhui == 'dxf':
    att1["Content-Type"] = 'image/vnd.dxf'
elif houzhui == 'e':
    att1["Content-Type"] = 'text/x-eiffel'
elif houzhui == 'egon':
    att1["Content-Type"] = 'application/x-egon'
elif houzhui == 'eif':
    att1["Content-Type"] = 'text/x-eiffel'
elif houzhui == 'el':
    att1["Content-Type"] = 'text/x-emacs-lisp'
elif houzhui == 'emf':
    att1["Content-Type"] = 'image/x-emf'
elif houzhui == 'emp':
    att1["Content-Type"] = 'application/vnd.emusic-emusic_package'
elif houzhui == 'ent':
    att1["Content-Type"] = 'application/xml-external-parsed-entity'
elif houzhui == 'eps':
    att1["Content-Type"] = 'image/x-eps'
elif houzhui == 'eps.bz2':
    att1["Content-Type"] = 'image/x-bzeps'
elif houzhui == 'eps.gz':
    att1["Content-Type"] = 'image/x-gzeps'
elif houzhui == 'epsf':
    att1["Content-Type"] = 'image/x-eps'
elif houzhui == 'epsf.bz2':
    att1["Content-Type"] = 'image/x-bzeps'
elif houzhui == 'epsf.gz':
    att1["Content-Type"] = 'image/x-gzeps'
elif houzhui == 'epsi':
    att1["Content-Type"] = 'image/x-eps'
elif houzhui == 'epsi.bz2':
    att1["Content-Type"] = 'image/x-bzeps'
elif houzhui == 'epsi.gz':
    att1["Content-Type"] = 'image/x-gzeps'
elif houzhui == 'epub':
    att1["Content-Type"] = 'application/epub+zip'
elif houzhui == 'erl':
    att1["Content-Type"] = 'text/x-erlang'
elif houzhui == 'es':
    att1["Content-Type"] = 'application/ecmascript'
elif houzhui == 'etheme':
    att1["Content-Type"] = 'application/x-e-theme'
elif houzhui == 'etx':
    att1["Content-Type"] = 'text/x-setext'
elif houzhui == 'exe':
    att1["Content-Type"] = 'application/x-ms-dos-executable'
elif houzhui == 'exr':
    att1["Content-Type"] = 'image/x-exr'
elif houzhui == 'ez':
    att1["Content-Type"] = 'application/andrew-inset'
elif houzhui == 'f':
    att1["Content-Type"] = 'text/x-fortran'
elif houzhui == 'f90':
    att1["Content-Type"] = 'text/x-fortran'
elif houzhui == 'f95':
    att1["Content-Type"] = 'text/x-fortran'
elif houzhui == 'fb2':
    att1["Content-Type"] = 'application/x-fictionbook+xml'
elif houzhui == 'fig':
    att1["Content-Type"] = 'image/x-xfig'
elif houzhui == 'fits':
    att1["Content-Type"] = 'image/fits'
elif houzhui == 'fl':
    att1["Content-Type"] = 'application/x-fluid'
elif houzhui == 'flac':
    att1["Content-Type"] = 'audio/x-flac'
elif houzhui == 'flc':
    att1["Content-Type"] = 'video/x-flic'
elif houzhui == 'fli':
    att1["Content-Type"] = 'video/x-flic'
elif houzhui == 'flv':
    att1["Content-Type"] = 'video/x-flv'
elif houzhui == 'flw':
    att1["Content-Type"] = 'application/x-kivio'
elif houzhui == 'fo':
    att1["Content-Type"] = 'text/x-xslfo'
elif houzhui == 'for':
    att1["Content-Type"] = 'text/x-fortran'
elif houzhui == 'g3':
    att1["Content-Type"] = 'image/fax-g3'
elif houzhui == 'gb':
    att1["Content-Type"] = 'application/x-gameboy-rom'
elif houzhui == 'gba':
    att1["Content-Type"] = 'application/x-gba-rom'
elif houzhui == 'gcrd':
    att1["Content-Type"] = 'text/directory'
elif houzhui == 'ged':
    att1["Content-Type"] = 'application/x-gedcom'
elif houzhui == 'gedcom':
    att1["Content-Type"] = 'application/x-gedcom'
elif houzhui == 'gen':
    att1["Content-Type"] = 'application/x-genesis-rom'
elif houzhui == 'gf':
    att1["Content-Type"] = 'application/x-tex-gf'
elif houzhui == 'gg':
    att1["Content-Type"] = 'application/x-sms-rom'
elif houzhui == 'gif':
    att1["Content-Type"] = 'image/gif'
elif houzhui == 'glade':
    att1["Content-Type"] = 'application/x-glade'
elif houzhui == 'gmo':
    att1["Content-Type"] = 'application/x-gettext-translation'
elif houzhui == 'gnc':
    att1["Content-Type"] = 'application/x-gnucash'
elif houzhui == 'gnd':
    att1["Content-Type"] = 'application/gnunet-directory'
elif houzhui == 'gnucash':
    att1["Content-Type"] = 'application/x-gnucash'
elif houzhui == 'gnumeric':
    att1["Content-Type"] = 'application/x-gnumeric'
elif houzhui == 'gnuplot':
    att1["Content-Type"] = 'application/x-gnuplot'
elif houzhui == 'gp':
    att1["Content-Type"] = 'application/x-gnuplot'
elif houzhui == 'gpg':
    att1["Content-Type"] = 'application/pgp-encrypted'
elif houzhui == 'gplt':
    att1["Content-Type"] = 'application/x-gnuplot'
elif houzhui == 'gra':
    att1["Content-Type"] = 'application/x-graphite'
elif houzhui == 'gsf':
    att1["Content-Type"] = 'application/x-font-type1'
elif houzhui == 'gsm':
    att1["Content-Type"] = 'audio/x-gsm'
elif houzhui == 'gtar':
    att1["Content-Type"] = 'application/x-tar'
elif houzhui == 'gv':
    att1["Content-Type"] = 'text/vnd.graphviz'
elif houzhui == 'gvp':
    att1["Content-Type"] = 'text/x-google-video-pointer'
elif houzhui == 'gz':
    att1["Content-Type"] = 'application/x-gzip'
elif houzhui == 'h':
    att1["Content-Type"] = 'text/x-chdr'
elif houzhui == 'h++':
    att1["Content-Type"] = 'text/x-c++hdr'
elif houzhui == 'hdf':
    att1["Content-Type"] = 'application/x-hdf'
elif houzhui == 'hh':
    att1["Content-Type"] = 'text/x-c++hdr'
elif houzhui == 'hp':
    att1["Content-Type"] = 'text/x-c++hdr'
elif houzhui == 'hpgl':
    att1["Content-Type"] = 'application/vnd.hp-hpgl'
elif houzhui == 'hpp':
    att1["Content-Type"] = 'text/x-c++hdr'
elif houzhui == 'hs':
    att1["Content-Type"] = 'text/x-haskell'
elif houzhui == 'htm':
    att1["Content-Type"] = 'text/html'
elif houzhui == 'html':
    att1["Content-Type"] = 'text/html'
elif houzhui == 'hwp':
    att1["Content-Type"] = 'application/x-hwp'
elif houzhui == 'hwt':
    att1["Content-Type"] = 'application/x-hwt'
elif houzhui == 'hxx':
    att1["Content-Type"] = 'text/x-c++hdr'
elif houzhui == 'ica':
    att1["Content-Type"] = 'application/x-ica'
elif houzhui == 'icb':
    att1["Content-Type"] = 'image/x-tga'
elif houzhui == 'icns':
    att1["Content-Type"] = 'image/x-icns'
elif houzhui == 'ico':
    att1["Content-Type"] = 'image/vnd.microsoft.icon'
elif houzhui == 'ics':
    att1["Content-Type"] = 'text/calendar'
elif houzhui == 'idl':
    att1["Content-Type"] = 'text/x-idl'
elif houzhui == 'ief':
    att1["Content-Type"] = 'image/ief'
elif houzhui == 'iff':
    att1["Content-Type"] = 'image/x-iff'
elif houzhui == 'ilbm':
    att1["Content-Type"] = 'image/x-ilbm'
elif houzhui == 'ime':
    att1["Content-Type"] = 'text/x-imelody'
elif houzhui == 'imy':
    att1["Content-Type"] = 'text/x-imelody'
elif houzhui == 'ins':
    att1["Content-Type"] = 'text/x-tex'
elif houzhui == 'iptables':
    att1["Content-Type"] = 'text/x-iptables'
elif houzhui == 'iso':
    att1["Content-Type"] = 'application/x-cd-image'
elif houzhui == 'iso9660':
    att1["Content-Type"] = 'application/x-cd-image'
elif houzhui == 'it':
    att1["Content-Type"] = 'audio/x-it'
elif houzhui == 'j2k':
    att1["Content-Type"] = 'image/jp2'
elif houzhui == 'jad':
    att1["Content-Type"] = 'text/vnd.sun.j2me.app-descriptor'
elif houzhui == 'jar':
    att1["Content-Type"] = 'application/x-java-archive'
elif houzhui == 'java':
    att1["Content-Type"] = 'text/x-java'
elif houzhui == 'jng':
    att1["Content-Type"] = 'image/x-jng'
elif houzhui == 'jnlp':
    att1["Content-Type"] = 'application/x-java-jnlp-file'
elif houzhui == 'jp2':
    att1["Content-Type"] = 'image/jp2'
elif houzhui == 'jpc':
    att1["Content-Type"] = 'image/jp2'
elif houzhui == 'jpe':
    att1["Content-Type"] = 'image/jpeg'
elif houzhui == 'jpeg':
    att1["Content-Type"] = 'image/jpeg'
elif houzhui == 'jpf':
    att1["Content-Type"] = 'image/jp2'
elif houzhui == 'jpg':
    att1["Content-Type"] = 'image/jpeg'
elif houzhui == 'jpr':
    att1["Content-Type"] = 'application/x-jbuilder-project'
elif houzhui == 'jpx':
    att1["Content-Type"] = 'image/jp2'
elif houzhui == 'js':
    att1["Content-Type"] = 'application/javascript'
elif houzhui == 'json':
    att1["Content-Type"] = 'application/json'
elif houzhui == 'jsonp':
    att1["Content-Type"] = 'application/jsonp'
elif houzhui == 'k25':
    att1["Content-Type"] = 'image/x-kodak-k25'
elif houzhui == 'kar':
    att1["Content-Type"] = 'audio/midi'
elif houzhui == 'karbon':
    att1["Content-Type"] = 'application/x-karbon'
elif houzhui == 'kdc':
    att1["Content-Type"] = 'image/x-kodak-kdc'
elif houzhui == 'kdelnk':
    att1["Content-Type"] = 'application/x-desktop'
elif houzhui == 'kexi':
    att1["Content-Type"] = 'application/x-kexiproject-sqlite3'
elif houzhui == 'kexic':
    att1["Content-Type"] = 'application/x-kexi-connectiondata'
elif houzhui == 'kexis':
    att1["Content-Type"] = 'application/x-kexiproject-shortcut'
elif houzhui == 'kfo':
    att1["Content-Type"] = 'application/x-kformula'
elif houzhui == 'kil':
    att1["Content-Type"] = 'application/x-killustrator'
elif houzhui == 'kino':
    att1["Content-Type"] = 'application/smil'
elif houzhui == 'kml':
    att1["Content-Type"] = 'application/vnd.google-earth.kml+xml'
elif houzhui == 'kmz':
    att1["Content-Type"] = 'application/vnd.google-earth.kmz'
elif houzhui == 'kon':
    att1["Content-Type"] = 'application/x-kontour'
elif houzhui == 'kpm':
    att1["Content-Type"] = 'application/x-kpovmodeler'
elif houzhui == 'kpr':
    att1["Content-Type"] = 'application/x-kpresenter'
elif houzhui == 'kpt':
    att1["Content-Type"] = 'application/x-kpresenter'
elif houzhui == 'kra':
    att1["Content-Type"] = 'application/x-krita'
elif houzhui == 'ksp':
    att1["Content-Type"] = 'application/x-kspread'
elif houzhui == 'kud':
    att1["Content-Type"] = 'application/x-kugar'
elif houzhui == 'kwd':
    att1["Content-Type"] = 'application/x-kword'
elif houzhui == 'kwt':
    att1["Content-Type"] = 'application/x-kword'
elif houzhui == 'la':
    att1["Content-Type"] = 'application/x-shared-library-la'
elif houzhui == 'latex':
    att1["Content-Type"] = 'text/x-tex'
elif houzhui == 'ldif':
    att1["Content-Type"] = 'text/x-ldif'
elif houzhui == 'lha':
    att1["Content-Type"] = 'application/x-lha'
elif houzhui == 'lhs':
    att1["Content-Type"] = 'text/x-literate-haskell'
elif houzhui == 'lhz':
    att1["Content-Type"] = 'application/x-lhz'
elif houzhui == 'log':
    att1["Content-Type"] = 'text/x-log'
elif houzhui == 'ltx':
    att1["Content-Type"] = 'text/x-tex'
elif houzhui == 'lua':
    att1["Content-Type"] = 'text/x-lua'
elif houzhui == 'lwo':
    att1["Content-Type"] = 'image/x-lwo'
elif houzhui == 'lwob':
    att1["Content-Type"] = 'image/x-lwo'
elif houzhui == 'lws':
    att1["Content-Type"] = 'image/x-lws'
elif houzhui == 'ly':
    att1["Content-Type"] = 'text/x-lilypond'
elif houzhui == 'lyx':
    att1["Content-Type"] = 'application/x-lyx'
elif houzhui == 'lz':
    att1["Content-Type"] = 'application/x-lzip'
elif houzhui == 'lzh':
    att1["Content-Type"] = 'application/x-lha'
elif houzhui == 'lzma':
    att1["Content-Type"] = 'application/x-lzma'
elif houzhui == 'lzo':
    att1["Content-Type"] = 'application/x-lzop'
elif houzhui == 'm':
    att1["Content-Type"] = 'text/x-matlab'
elif houzhui == 'm15':
    att1["Content-Type"] = 'audio/x-mod'
elif houzhui == 'm2t':
    att1["Content-Type"] = 'video/mpeg'
elif houzhui == 'm3u':
    att1["Content-Type"] = 'audio/x-mpegurl'
elif houzhui == 'm3u8':
    att1["Content-Type"] = 'audio/x-mpegurl'
elif houzhui == 'm4':
    att1["Content-Type"] = 'application/x-m4'
elif houzhui == 'm4a':
    att1["Content-Type"] = 'audio/mp4'
elif houzhui == 'm4b':
    att1["Content-Type"] = 'audio/x-m4b'
elif houzhui == 'm4v':
    att1["Content-Type"] = 'video/mp4'
elif houzhui == 'mab':
    att1["Content-Type"] = 'application/x-markaby'
elif houzhui == 'man':
    att1["Content-Type"] = 'application/x-troff-man'
elif houzhui == 'mbox':
    att1["Content-Type"] = 'application/mbox'
elif houzhui == 'md':
    att1["Content-Type"] = 'application/x-genesis-rom'
elif houzhui == 'mdb':
    att1["Content-Type"] = 'application/vnd.ms-access'
elif houzhui == 'mdi':
    att1["Content-Type"] = 'image/vnd.ms-modi'
elif houzhui == 'me':
    att1["Content-Type"] = 'text/x-troff-me'
elif houzhui == 'med':
    att1["Content-Type"] = 'audio/x-mod'
elif houzhui == 'metalink':
    att1["Content-Type"] = 'application/metalink+xml'
elif houzhui == 'mgp':
    att1["Content-Type"] = 'application/x-magicpoint'
elif houzhui == 'mid':
    att1["Content-Type"] = 'audio/midi'
elif houzhui == 'midi':
    att1["Content-Type"] = 'audio/midi'
elif houzhui == 'mif':
    att1["Content-Type"] = 'application/x-mif'
elif houzhui == 'minipsf':
    att1["Content-Type"] = 'audio/x-minipsf'
elif houzhui == 'mka':
    att1["Content-Type"] = 'audio/x-matroska'
elif houzhui == 'mkv':
    att1["Content-Type"] = 'video/x-matroska'
elif houzhui == 'ml':
    att1["Content-Type"] = 'text/x-ocaml'
elif houzhui == 'mli':
    att1["Content-Type"] = 'text/x-ocaml'
elif houzhui == 'mm':
    att1["Content-Type"] = 'text/x-troff-mm'
elif houzhui == 'mmf':
    att1["Content-Type"] = 'application/x-smaf'
elif houzhui == 'mml':
    att1["Content-Type"] = 'text/mathml'
elif houzhui == 'mng':
    att1["Content-Type"] = 'video/x-mng'
elif houzhui == 'mo':
    att1["Content-Type"] = 'application/x-gettext-translation'
elif houzhui == 'mo3':
    att1["Content-Type"] = 'audio/x-mo3'
elif houzhui == 'moc':
    att1["Content-Type"] = 'text/x-moc'
elif houzhui == 'mod':
    att1["Content-Type"] = 'audio/x-mod'
elif houzhui == 'mof':
    att1["Content-Type"] = 'text/x-mof'
elif houzhui == 'moov':
    att1["Content-Type"] = 'video/quicktime'
elif houzhui == 'mov':
    att1["Content-Type"] = 'video/quicktime'
elif houzhui == 'movie':
    att1["Content-Type"] = 'video/x-sgi-movie'
elif houzhui == 'mp+':
    att1["Content-Type"] = 'audio/x-musepack'
elif houzhui == 'mp2':
    att1["Content-Type"] = 'video/mpeg'
elif houzhui == 'mp3':
    att1["Content-Type"] = 'audio/mpeg'
elif houzhui == 'mp4':
    att1["Content-Type"] = 'video/mp4'
elif houzhui == 'mpc':
    att1["Content-Type"] = 'audio/x-musepack'
elif houzhui == 'mpe':
    att1["Content-Type"] = 'video/mpeg'
elif houzhui == 'mpeg':
    att1["Content-Type"] = 'video/mpeg'
elif houzhui == 'mpg':
    att1["Content-Type"] = 'video/mpeg'
elif houzhui == 'mpga':
    att1["Content-Type"] = 'audio/mpeg'
elif houzhui == 'mpp':
    att1["Content-Type"] = 'audio/x-musepack'
elif houzhui == 'mrl':
    att1["Content-Type"] = 'text/x-mrml'
elif houzhui == 'mrml':
    att1["Content-Type"] = 'text/x-mrml'
elif houzhui == 'mrw':
    att1["Content-Type"] = 'image/x-minolta-mrw'
elif houzhui == 'ms':
    att1["Content-Type"] = 'text/x-troff-ms'
elif houzhui == 'msi':
    att1["Content-Type"] = 'application/x-msi'
elif houzhui == 'msod':
    att1["Content-Type"] = 'image/x-msod'
elif houzhui == 'msx':
    att1["Content-Type"] = 'application/x-msx-rom'
elif houzhui == 'mtm':
    att1["Content-Type"] = 'audio/x-mod'
elif houzhui == 'mup':
    att1["Content-Type"] = 'text/x-mup'
elif houzhui == 'mxf':
    att1["Content-Type"] = 'application/mxf'
elif houzhui == 'n64':
    att1["Content-Type"] = 'application/x-n64-rom'
elif houzhui == 'nb':
    att1["Content-Type"] = 'application/mathematica'
elif houzhui == 'nc':
    att1["Content-Type"] = 'application/x-netcdf'
elif houzhui == 'nds':
    att1["Content-Type"] = 'application/x-nintendo-ds-rom'
elif houzhui == 'nef':
    att1["Content-Type"] = 'image/x-nikon-nef'
elif houzhui == 'nes':
    att1["Content-Type"] = 'application/x-nes-rom'
elif houzhui == 'nfo':
    att1["Content-Type"] = 'text/x-nfo'
elif houzhui == 'not':
    att1["Content-Type"] = 'text/x-mup'
elif houzhui == 'nsc':
    att1["Content-Type"] = 'application/x-netshow-channel'
elif houzhui == 'nsv':
    att1["Content-Type"] = 'video/x-nsv'
elif houzhui == 'o':
    att1["Content-Type"] = 'application/x-object'
elif houzhui == 'obj':
    att1["Content-Type"] = 'application/x-tgif'
elif houzhui == 'ocl':
    att1["Content-Type"] = 'text/x-ocl'
elif houzhui == 'oda':
    att1["Content-Type"] = 'application/oda'
elif houzhui == 'odb':
    att1["Content-Type"] = 'application/vnd.oasis.opendocument.database'
elif houzhui == 'odc':
    att1["Content-Type"] = 'application/vnd.oasis.opendocument.chart'
elif houzhui == 'odf':
    att1["Content-Type"] = 'application/vnd.oasis.opendocument.formula'
elif houzhui == 'odg':
    att1["Content-Type"] = 'application/vnd.oasis.opendocument.graphics'
elif houzhui == 'odi':
    att1["Content-Type"] = 'application/vnd.oasis.opendocument.image'
elif houzhui == 'odm':
    att1["Content-Type"] = 'application/vnd.oasis.opendocument.text-master'
elif houzhui == 'odp':
    att1["Content-Type"] = 'application/vnd.oasis.opendocument.presentation'
elif houzhui == 'ods':
    att1["Content-Type"] = 'application/vnd.oasis.opendocument.spreadsheet'
elif houzhui == 'odt':
    att1["Content-Type"] = 'application/vnd.oasis.opendocument.text'
elif houzhui == 'oga':
    att1["Content-Type"] = 'audio/ogg'
elif houzhui == 'ogg':
    att1["Content-Type"] = 'video/x-theora+ogg'
elif houzhui == 'ogm':
    att1["Content-Type"] = 'video/x-ogm+ogg'
elif houzhui == 'ogv':
    att1["Content-Type"] = 'video/ogg'
elif houzhui == 'ogx':
    att1["Content-Type"] = 'application/ogg'
elif houzhui == 'old':
    att1["Content-Type"] = 'application/x-trash'
elif houzhui == 'oleo':
    att1["Content-Type"] = 'application/x-oleo'
elif houzhui == 'opml':
    att1["Content-Type"] = 'text/x-opml+xml'
elif houzhui == 'ora':
    att1["Content-Type"] = 'image/openraster'
elif houzhui == 'orf':
    att1["Content-Type"] = 'image/x-olympus-orf'
elif houzhui == 'otc':
    att1["Content-Type"] = 'application/vnd.oasis.opendocument.chart-template'
elif houzhui == 'otf':
    att1["Content-Type"] = 'application/x-font-otf'
elif houzhui == 'otg':
    att1["Content-Type"] = 'application/vnd.oasis.opendocument.graphics-template'
elif houzhui == 'oth':
    att1["Content-Type"] = 'application/vnd.oasis.opendocument.text-web'
elif houzhui == 'otp':
    att1["Content-Type"] = 'application/vnd.oasis.opendocument.presentation-template'
elif houzhui == 'ots':
    att1["Content-Type"] = 'application/vnd.oasis.opendocument.spreadsheet-template'
elif houzhui == 'ott':
    att1["Content-Type"] = 'application/vnd.oasis.opendocument.text-template'
elif houzhui == 'owl':
    att1["Content-Type"] = 'application/rdf+xml'
elif houzhui == 'oxt':
    att1["Content-Type"] = 'application/vnd.openofficeorg.extension'
elif houzhui == 'p':
    att1["Content-Type"] = 'text/x-pascal'
elif houzhui == 'p10':
    att1["Content-Type"] = 'application/pkcs10'
elif houzhui == 'p12':
    att1["Content-Type"] = 'application/x-pkcs12'
elif houzhui == 'p7b':
    att1["Content-Type"] = 'application/x-pkcs7-certificates'
elif houzhui == 'p7s':
    att1["Content-Type"] = 'application/pkcs7-signature'
elif houzhui == 'pack':
    att1["Content-Type"] = 'application/x-java-pack200'
elif houzhui == 'pak':
    att1["Content-Type"] = 'application/x-pak'
elif houzhui == 'par2':
    att1["Content-Type"] = 'application/x-par2'
elif houzhui == 'pas':
    att1["Content-Type"] = 'text/x-pascal'
elif houzhui == 'patch':
    att1["Content-Type"] = 'text/x-patch'
elif houzhui == 'pbm':
    att1["Content-Type"] = 'image/x-portable-bitmap'
elif houzhui == 'pcd':
    att1["Content-Type"] = 'image/x-photo-cd'
elif houzhui == 'pcf':
    att1["Content-Type"] = 'application/x-cisco-vpn-settings'
elif houzhui == 'pcf.gz':
    att1["Content-Type"] = 'application/x-font-pcf'
elif houzhui == 'pcf.z':
    att1["Content-Type"] = 'application/x-font-pcf'
elif houzhui == 'pcl':
    att1["Content-Type"] = 'application/vnd.hp-pcl'
elif houzhui == 'pcx':
    att1["Content-Type"] = 'image/x-pcx'
elif houzhui == 'pdb':
    att1["Content-Type"] = 'chemical/x-pdb'
elif houzhui == 'pdc':
    att1["Content-Type"] = 'application/x-aportisdoc'
elif houzhui == 'pdf':
    att1["Content-Type"] = 'application/pdf'
elif houzhui == 'pdf.bz2':
    att1["Content-Type"] = 'application/x-bzpdf'
elif houzhui == 'pdf.gz':
    att1["Content-Type"] = 'application/x-gzpdf'
elif houzhui == 'pef':
    att1["Content-Type"] = 'image/x-pentax-pef'
elif houzhui == 'pem':
    att1["Content-Type"] = 'application/x-x509-ca-cert'
elif houzhui == 'perl':
    att1["Content-Type"] = 'application/x-perl'
elif houzhui == 'pfa':
    att1["Content-Type"] = 'application/x-font-type1'
elif houzhui == 'pfb':
    att1["Content-Type"] = 'application/x-font-type1'
elif houzhui == 'pfx':
    att1["Content-Type"] = 'application/x-pkcs12'
elif houzhui == 'pgm':
    att1["Content-Type"] = 'image/x-portable-graymap'
elif houzhui == 'pgn':
    att1["Content-Type"] = 'application/x-chess-pgn'
elif houzhui == 'pgp':
    att1["Content-Type"] = 'application/pgp-encrypted'
elif houzhui == 'php':
    att1["Content-Type"] = 'application/x-php'
elif houzhui == 'php3':
    att1["Content-Type"] = 'application/x-php'
elif houzhui == 'php4':
    att1["Content-Type"] = 'application/x-php'
elif houzhui == 'pict':
    att1["Content-Type"] = 'image/x-pict'
elif houzhui == 'pict1':
    att1["Content-Type"] = 'image/x-pict'
elif houzhui == 'pict2':
    att1["Content-Type"] = 'image/x-pict'
elif houzhui == 'pickle':
    att1["Content-Type"] = 'application/python-pickle'
elif houzhui == 'pk':
    att1["Content-Type"] = 'application/x-tex-pk'
elif houzhui == 'pkipath':
    att1["Content-Type"] = 'application/pkix-pkipath'
elif houzhui == 'pkr':
    att1["Content-Type"] = 'application/pgp-keys'
elif houzhui == 'pl':
    att1["Content-Type"] = 'application/x-perl'
elif houzhui == 'pla':
    att1["Content-Type"] = 'audio/x-iriver-pla'
elif houzhui == 'pln':
    att1["Content-Type"] = 'application/x-planperfect'
elif houzhui == 'pls':
    att1["Content-Type"] = 'audio/x-scpls'
elif houzhui == 'pm':
    att1["Content-Type"] = 'application/x-perl'
elif houzhui == 'png':
    att1["Content-Type"] = 'image/png'
elif houzhui == 'pnm':
    att1["Content-Type"] = 'image/x-portable-anymap'
elif houzhui == 'pntg':
    att1["Content-Type"] = 'image/x-macpaint'
elif houzhui == 'po':
    att1["Content-Type"] = 'text/x-gettext-translation'
elif houzhui == 'por':
    att1["Content-Type"] = 'application/x-spss-por'
elif houzhui == 'pot':
    att1["Content-Type"] = 'text/x-gettext-translation-template'
elif houzhui == 'ppm':
    att1["Content-Type"] = 'image/x-portable-pixmap'
elif houzhui == 'pps':
    att1["Content-Type"] = 'application/vnd.ms-powerpoint'
elif houzhui == 'ppt':
    att1["Content-Type"] = 'application/vnd.ms-powerpoint'
elif houzhui == 'pptm':
    att1["Content-Type"] = 'application/vnd.openxmlformats-officedocument.presentationml.presentation'
elif houzhui == 'pptx':
    att1["Content-Type"] = 'application/vnd.openxmlformats-officedocument.presentationml.presentation'
elif houzhui == 'ppz':
    att1["Content-Type"] = 'application/vnd.ms-powerpoint'
elif houzhui == 'prc':
    att1["Content-Type"] = 'application/x-palm-database'
elif houzhui == 'ps':
    att1["Content-Type"] = 'application/postscript'
elif houzhui == 'ps.bz2':
    att1["Content-Type"] = 'application/x-bzpostscript'
elif houzhui == 'ps.gz':
    att1["Content-Type"] = 'application/x-gzpostscript'
elif houzhui == 'psd':
    att1["Content-Type"] = 'image/vnd.adobe.photoshop'
elif houzhui == 'psf':
    att1["Content-Type"] = 'audio/x-psf'
elif houzhui == 'psf.gz':
    att1["Content-Type"] = 'application/x-gz-font-linux-psf'
elif houzhui == 'psflib':
    att1["Content-Type"] = 'audio/x-psflib'
elif houzhui == 'psid':
    att1["Content-Type"] = 'audio/prs.sid'
elif houzhui == 'psw':
    att1["Content-Type"] = 'application/x-pocket-word'
elif houzhui == 'pw':
    att1["Content-Type"] = 'application/x-pw'
elif houzhui == 'py':
    att1["Content-Type"] = 'text/x-python'
elif houzhui == 'pyc':
    att1["Content-Type"] = 'application/x-python-bytecode'
elif houzhui == 'pyo':
    att1["Content-Type"] = 'application/x-python-bytecode'
elif houzhui == 'qif':
    att1["Content-Type"] = 'image/x-quicktime'
elif houzhui == 'qt':
    att1["Content-Type"] = 'video/quicktime'
elif houzhui == 'qtif':
    att1["Content-Type"] = 'image/x-quicktime'
elif houzhui == 'qtl':
    att1["Content-Type"] = 'application/x-quicktime-media-link'
elif houzhui == 'qtvr':
    att1["Content-Type"] = 'video/quicktime'
elif houzhui == 'ra':
    att1["Content-Type"] = 'audio/vnd.rn-realaudio'
elif houzhui == 'raf':
    att1["Content-Type"] = 'image/x-fuji-raf'
elif houzhui == 'ram':
    att1["Content-Type"] = 'application/ram'
elif houzhui == 'rar':
    att1["Content-Type"] = 'application/x-rar'
elif houzhui == 'ras':
    att1["Content-Type"] = 'image/x-cmu-raster'
elif houzhui == 'raw':
    att1["Content-Type"] = 'image/x-panasonic-raw'
elif houzhui == 'rax':
    att1["Content-Type"] = 'audio/vnd.rn-realaudio'
elif houzhui == 'rb':
    att1["Content-Type"] = 'application/x-ruby'
elif houzhui == 'rdf':
    att1["Content-Type"] = 'application/rdf+xml'
elif houzhui == 'rdfs':
    att1["Content-Type"] = 'application/rdf+xml'
elif houzhui == 'reg':
    att1["Content-Type"] = 'text/x-ms-regedit'
elif houzhui == 'rej':
    att1["Content-Type"] = 'application/x-reject'
elif houzhui == 'rgb':
    att1["Content-Type"] = 'image/x-rgb'
elif houzhui == 'rle':
    att1["Content-Type"] = 'image/rle'
elif houzhui == 'rm':
    att1["Content-Type"] = 'application/vnd.rn-realmedia'
elif houzhui == 'rmj':
    att1["Content-Type"] = 'application/vnd.rn-realmedia'
elif houzhui == 'rmm':
    att1["Content-Type"] = 'application/vnd.rn-realmedia'
elif houzhui == 'rms':
    att1["Content-Type"] = 'application/vnd.rn-realmedia'
elif houzhui == 'rmvb':
    att1["Content-Type"] = 'application/vnd.rn-realmedia'
elif houzhui == 'rmx':
    att1["Content-Type"] = 'application/vnd.rn-realmedia'
elif houzhui == 'roff':
    att1["Content-Type"] = 'text/troff'
elif houzhui == 'rp':
    att1["Content-Type"] = 'image/vnd.rn-realpix'
elif houzhui == 'rpm':
    att1["Content-Type"] = 'application/x-rpm'
elif houzhui == 'rss':
    att1["Content-Type"] = 'application/rss+xml'
elif houzhui == 'rt':
    att1["Content-Type"] = 'text/vnd.rn-realtext'
elif houzhui == 'rtf':
    att1["Content-Type"] = 'application/rtf'
elif houzhui == 'rtx':
    att1["Content-Type"] = 'text/richtext'
elif houzhui == 'rv':
    att1["Content-Type"] = 'video/vnd.rn-realvideo'
elif houzhui == 'rvx':
    att1["Content-Type"] = 'video/vnd.rn-realvideo'
elif houzhui == 's3m':
    att1["Content-Type"] = 'audio/x-s3m'
elif houzhui == 'sam':
    att1["Content-Type"] = 'application/x-amipro'
elif houzhui == 'sami':
    att1["Content-Type"] = 'application/x-sami'
elif houzhui == 'sav':
    att1["Content-Type"] = 'application/x-spss-sav'
elif houzhui == 'scm':
    att1["Content-Type"] = 'text/x-scheme'
elif houzhui == 'sda':
    att1["Content-Type"] = 'application/vnd.stardivision.draw'
elif houzhui == 'sdc':
    att1["Content-Type"] = 'application/vnd.stardivision.calc'
elif houzhui == 'sdd':
    att1["Content-Type"] = 'application/vnd.stardivision.impress'
elif houzhui == 'sdp':
    att1["Content-Type"] = 'application/sdp'
elif houzhui == 'sds':
    att1["Content-Type"] = 'application/vnd.stardivision.chart'
elif houzhui == 'sdw':
    att1["Content-Type"] = 'application/vnd.stardivision.writer'
elif houzhui == 'sgf':
    att1["Content-Type"] = 'application/x-go-sgf'
elif houzhui == 'sgi':
    att1["Content-Type"] = 'image/x-sgi'
elif houzhui == 'sgl':
    att1["Content-Type"] = 'application/vnd.stardivision.writer'
elif houzhui == 'sgm':
    att1["Content-Type"] = 'text/sgml'
elif houzhui == 'sgml':
    att1["Content-Type"] = 'text/sgml'
elif houzhui == 'sh':
    att1["Content-Type"] = 'application/x-shellscript'
elif houzhui == 'shar':
    att1["Content-Type"] = 'application/x-shar'
elif houzhui == 'shn':
    att1["Content-Type"] = 'application/x-shorten'
elif houzhui == 'siag':
    att1["Content-Type"] = 'application/x-siag'
elif houzhui == 'sid':
    att1["Content-Type"] = 'audio/prs.sid'
elif houzhui == 'sik':
    att1["Content-Type"] = 'application/x-trash'
elif houzhui == 'sis':
    att1["Content-Type"] = 'application/vnd.symbian.install'
elif houzhui == 'sisx':
    att1["Content-Type"] = 'x-epoc/x-sisx-app'
elif houzhui == 'sit':
    att1["Content-Type"] = 'application/x-stuffit'
elif houzhui == 'siv':
    att1["Content-Type"] = 'application/sieve'
elif houzhui == 'sk':
    att1["Content-Type"] = 'image/x-skencil'
elif houzhui == 'sk1':
    att1["Content-Type"] = 'image/x-skencil'
elif houzhui == 'skr':
    att1["Content-Type"] = 'application/pgp-keys'
elif houzhui == 'slk':
    att1["Content-Type"] = 'text/spreadsheet'
elif houzhui == 'smaf':
    att1["Content-Type"] = 'application/x-smaf'
elif houzhui == 'smc':
    att1["Content-Type"] = 'application/x-snes-rom'
elif houzhui == 'smd':
    att1["Content-Type"] = 'application/vnd.stardivision.mail'
elif houzhui == 'smf':
    att1["Content-Type"] = 'application/vnd.stardivision.math'
elif houzhui == 'smi':
    att1["Content-Type"] = 'application/x-sami'
elif houzhui == 'smil':
    att1["Content-Type"] = 'application/smil'
elif houzhui == 'sml':
    att1["Content-Type"] = 'application/smil'
elif houzhui == 'sms':
    att1["Content-Type"] = 'application/x-sms-rom'
elif houzhui == 'snd':
    att1["Content-Type"] = 'audio/basic'
elif houzhui == 'so':
    att1["Content-Type"] = 'application/x-sharedlib'
elif houzhui == 'spc':
    att1["Content-Type"] = 'application/x-pkcs7-certificates'
elif houzhui == 'spd':
    att1["Content-Type"] = 'application/x-font-speedo'
elif houzhui == 'spec':
    att1["Content-Type"] = 'text/x-rpm-spec'
elif houzhui == 'spl':
    att1["Content-Type"] = 'application/x-shockwave-flash'
elif houzhui == 'spx':
    att1["Content-Type"] = 'audio/x-speex'
elif houzhui == 'sql':
    att1["Content-Type"] = 'text/x-sql'
elif houzhui == 'sr2':
    att1["Content-Type"] = 'image/x-sony-sr2'
elif houzhui == 'src':
    att1["Content-Type"] = 'application/x-wais-source'
elif houzhui == 'srf':
    att1["Content-Type"] = 'image/x-sony-srf'
elif houzhui == 'srt':
    att1["Content-Type"] = 'application/x-subrip'
elif houzhui == 'ssa':
    att1["Content-Type"] = 'text/x-ssa'
elif houzhui == 'stc':
    att1["Content-Type"] = 'application/vnd.sun.xml.calc.template'
elif houzhui == 'std':
    att1["Content-Type"] = 'application/vnd.sun.xml.draw.template'
elif houzhui == 'sti':
    att1["Content-Type"] = 'application/vnd.sun.xml.impress.template'
elif houzhui == 'stm':
    att1["Content-Type"] = 'audio/x-stm'
elif houzhui == 'stw':
    att1["Content-Type"] = 'application/vnd.sun.xml.writer.template'
elif houzhui == 'sty':
    att1["Content-Type"] = 'text/x-tex'
elif houzhui == 'sub':
    att1["Content-Type"] = 'text/x-subviewer'
elif houzhui == 'sun':
    att1["Content-Type"] = 'image/x-sun-raster'
elif houzhui == 'sv4cpio':
    att1["Content-Type"] = 'application/x-sv4cpio'
elif houzhui == 'sv4crc':
    att1["Content-Type"] = 'application/x-sv4crc'
elif houzhui == 'svg':
    att1["Content-Type"] = 'image/svg+xml'
elif houzhui == 'svgz':
    att1["Content-Type"] = 'image/svg+xml-compressed'
elif houzhui == 'swf':
    att1["Content-Type"] = 'application/x-shockwave-flash'
elif houzhui == 'sxc':
    att1["Content-Type"] = 'application/vnd.sun.xml.calc'
elif houzhui == 'sxd':
    att1["Content-Type"] = 'application/vnd.sun.xml.draw'
elif houzhui == 'sxg':
    att1["Content-Type"] = 'application/vnd.sun.xml.writer.global'
elif houzhui == 'sxi':
    att1["Content-Type"] = 'application/vnd.sun.xml.impress'
elif houzhui == 'sxm':
    att1["Content-Type"] = 'application/vnd.sun.xml.math'
elif houzhui == 'sxw':
    att1["Content-Type"] = 'application/vnd.sun.xml.writer'
elif houzhui == 'sylk':
    att1["Content-Type"] = 'text/spreadsheet'
elif houzhui == 't':
    att1["Content-Type"] = 'text/troff'
elif houzhui == 't2t':
    att1["Content-Type"] = 'text/x-txt2tags'
elif houzhui == 'tar':
    att1["Content-Type"] = 'application/x-tar'
elif houzhui == 'tar.bz':
    att1["Content-Type"] = 'application/x-bzip-compressed-tar'
elif houzhui == 'tar.bz2':
    att1["Content-Type"] = 'application/x-bzip-compressed-tar'
elif houzhui == 'tar.gz':
    att1["Content-Type"] = 'application/x-compressed-tar'
elif houzhui == 'tar.lzma':
    att1["Content-Type"] = 'application/x-lzma-compressed-tar'
elif houzhui == 'tar.lzo':
    att1["Content-Type"] = 'application/x-tzo'
elif houzhui == 'tar.xz':
    att1["Content-Type"] = 'application/x-xz-compressed-tar'
elif houzhui == 'tar.z':
    att1["Content-Type"] = 'application/x-tarz'
elif houzhui == 'tbz':
    att1["Content-Type"] = 'application/x-bzip-compressed-tar'
elif houzhui == 'tbz2':
    att1["Content-Type"] = 'application/x-bzip-compressed-tar'
elif houzhui == 'tcl':
    att1["Content-Type"] = 'text/x-tcl'
elif houzhui == 'tex':
    att1["Content-Type"] = 'text/x-tex'
elif houzhui == 'texi':
    att1["Content-Type"] = 'text/x-texinfo'
elif houzhui == 'texinfo':
    att1["Content-Type"] = 'text/x-texinfo'
elif houzhui == 'tga':
    att1["Content-Type"] = 'image/x-tga'
elif houzhui == 'tgz':
    att1["Content-Type"] = 'application/x-compressed-tar'
elif houzhui == 'theme':
    att1["Content-Type"] = 'application/x-theme'
elif houzhui == 'themepack':
    att1["Content-Type"] = 'application/x-windows-themepack'
elif houzhui == 'tif':
    att1["Content-Type"] = 'image/tiff'
elif houzhui == 'tiff':
    att1["Content-Type"] = 'image/tiff'
elif houzhui == 'tk':
    att1["Content-Type"] = 'text/x-tcl'
elif houzhui == 'tlz':
    att1["Content-Type"] = 'application/x-lzma-compressed-tar'
elif houzhui == 'tnef':
    att1["Content-Type"] = 'application/vnd.ms-tnef'
elif houzhui == 'tnf':
    att1["Content-Type"] = 'application/vnd.ms-tnef'
elif houzhui == 'toc':
    att1["Content-Type"] = 'application/x-cdrdao-toc'
elif houzhui == 'torrent':
    att1["Content-Type"] = 'application/x-bittorrent'
elif houzhui == 'tpic':
    att1["Content-Type"] = 'image/x-tga'
elif houzhui == 'tr':
    att1["Content-Type"] = 'text/troff'
elif houzhui == 'ts':
    att1["Content-Type"] = 'application/x-linguist'
elif houzhui == 'tsv':
    att1["Content-Type"] = 'text/tab-separated-values'
elif houzhui == 'tta':
    att1["Content-Type"] = 'audio/x-tta'
elif houzhui == 'ttc':
    att1["Content-Type"] = 'application/x-font-ttf'
elif houzhui == 'ttf':
    att1["Content-Type"] = 'application/x-font-ttf'
elif houzhui == 'ttx':
    att1["Content-Type"] = 'application/x-font-ttx'
elif houzhui == 'txt':
    att1["Content-Type"] = 'text/plain'
elif houzhui == 'txz':
    att1["Content-Type"] = 'application/x-xz-compressed-tar'
elif houzhui == 'tzo':
    att1["Content-Type"] = 'application/x-tzo'
elif houzhui == 'ufraw':
    att1["Content-Type"] = 'application/x-ufraw'
elif houzhui == 'ui':
    att1["Content-Type"] = 'application/x-designer'
elif houzhui == 'uil':
    att1["Content-Type"] = 'text/x-uil'
elif houzhui == 'ult':
    att1["Content-Type"] = 'audio/x-mod'
elif houzhui == 'uni':
    att1["Content-Type"] = 'audio/x-mod'
elif houzhui == 'uri':
    att1["Content-Type"] = 'text/x-uri'
elif houzhui == 'url':
    att1["Content-Type"] = 'text/x-uri'
elif houzhui == 'ustar':
    att1["Content-Type"] = 'application/x-ustar'
elif houzhui == 'vala':
    att1["Content-Type"] = 'text/x-vala'
elif houzhui == 'vapi':
    att1["Content-Type"] = 'text/x-vala'
elif houzhui == 'vcf':
    att1["Content-Type"] = 'text/directory'
elif houzhui == 'vcs':
    att1["Content-Type"] = 'text/calendar'
elif houzhui == 'vct':
    att1["Content-Type"] = 'text/directory'
elif houzhui == 'vda':
    att1["Content-Type"] = 'image/x-tga'
elif houzhui == 'vhd':
    att1["Content-Type"] = 'text/x-vhdl'
elif houzhui == 'vhdl':
    att1["Content-Type"] = 'text/x-vhdl'
elif houzhui == 'viv':
    att1["Content-Type"] = 'video/vivo'
elif houzhui == 'vivo':
    att1["Content-Type"] = 'video/vivo'
elif houzhui == 'vlc':
    att1["Content-Type"] = 'audio/x-mpegurl'
elif houzhui == 'vob':
    att1["Content-Type"] = 'video/mpeg'
elif houzhui == 'voc':
    att1["Content-Type"] = 'audio/x-voc'
elif houzhui == 'vor':
    att1["Content-Type"] = 'application/vnd.stardivision.writer'
elif houzhui == 'vst':
    att1["Content-Type"] = 'image/x-tga'
elif houzhui == 'wav':
    att1["Content-Type"] = 'audio/x-wav'
elif houzhui == 'wax':
    att1["Content-Type"] = 'audio/x-ms-asx'
elif houzhui == 'wb1':
    att1["Content-Type"] = 'application/x-quattropro'
elif houzhui == 'wb2':
    att1["Content-Type"] = 'application/x-quattropro'
elif houzhui == 'wb3':
    att1["Content-Type"] = 'application/x-quattropro'
elif houzhui == 'wbmp':
    att1["Content-Type"] = 'image/vnd.wap.wbmp'
elif houzhui == 'wcm':
    att1["Content-Type"] = 'application/vnd.ms-works'
elif houzhui == 'wdb':
    att1["Content-Type"] = 'application/vnd.ms-works'
elif houzhui == 'webm':
    att1["Content-Type"] = 'video/webm'
elif houzhui == 'wk1':
    att1["Content-Type"] = 'application/vnd.lotus-1-2-3'
elif houzhui == 'wk3':
    att1["Content-Type"] = 'application/vnd.lotus-1-2-3'
elif houzhui == 'wk4':
    att1["Content-Type"] = 'application/vnd.lotus-1-2-3'
elif houzhui == 'wks':
    att1["Content-Type"] = 'application/vnd.ms-works'
elif houzhui == 'wma':
    att1["Content-Type"] = 'audio/x-ms-wma'
elif houzhui == 'wmf':
    att1["Content-Type"] = 'image/x-wmf'
elif houzhui == 'wml':
    att1["Content-Type"] = 'text/vnd.wap.wml'
elif houzhui == 'wmls':
    att1["Content-Type"] = 'text/vnd.wap.wmlscript'
elif houzhui == 'wmv':
    att1["Content-Type"] = 'video/x-ms-wmv'
elif houzhui == 'wmx':
    att1["Content-Type"] = 'audio/x-ms-asx'
elif houzhui == 'wp':
    att1["Content-Type"] = 'application/vnd.wordperfect'
elif houzhui == 'wp4':
    att1["Content-Type"] = 'application/vnd.wordperfect'
elif houzhui == 'wp5':
    att1["Content-Type"] = 'application/vnd.wordperfect'
elif houzhui == 'wp6':
    att1["Content-Type"] = 'application/vnd.wordperfect'
elif houzhui == 'wpd':
    att1["Content-Type"] = 'application/vnd.wordperfect'
elif houzhui == 'wpg':
    att1["Content-Type"] = 'application/x-wpg'
elif houzhui == 'wpl':
    att1["Content-Type"] = 'application/vnd.ms-wpl'
elif houzhui == 'wpp':
    att1["Content-Type"] = 'application/vnd.wordperfect'
elif houzhui == 'wps':
    att1["Content-Type"] = 'application/vnd.ms-works'
elif houzhui == 'wri':
    att1["Content-Type"] = 'application/x-mswrite'
elif houzhui == 'wrl':
    att1["Content-Type"] = 'model/vrml'
elif houzhui == 'wv':
    att1["Content-Type"] = 'audio/x-wavpack'
elif houzhui == 'wvc':
    att1["Content-Type"] = 'audio/x-wavpack-correction'
elif houzhui == 'wvp':
    att1["Content-Type"] = 'audio/x-wavpack'
elif houzhui == 'wvx':
    att1["Content-Type"] = 'audio/x-ms-asx'
elif houzhui == 'x3f':
    att1["Content-Type"] = 'image/x-sigma-x3f'
elif houzhui == 'xac':
    att1["Content-Type"] = 'application/x-gnucash'
elif houzhui == 'xbel':
    att1["Content-Type"] = 'application/x-xbel'
elif houzhui == 'xbl':
    att1["Content-Type"] = 'application/xml'
elif houzhui == 'xbm':
    att1["Content-Type"] = 'image/x-xbitmap'
elif houzhui == 'xcf':
    att1["Content-Type"] = 'image/x-xcf'
elif houzhui == 'xcf.bz2':
    att1["Content-Type"] = 'image/x-compressed-xcf'
elif houzhui == 'xcf.gz':
    att1["Content-Type"] = 'image/x-compressed-xcf'
elif houzhui == 'xhtml':
    att1["Content-Type"] = 'application/xhtml+xml'
elif houzhui == 'xi':
    att1["Content-Type"] = 'audio/x-xi'
elif houzhui == 'xla':
    att1["Content-Type"] = 'application/vnd.ms-excel'
elif houzhui == 'xlc':
    att1["Content-Type"] = 'application/vnd.ms-excel'
elif houzhui == 'xld':
    att1["Content-Type"] = 'application/vnd.ms-excel'
elif houzhui == 'xlf':
    att1["Content-Type"] = 'application/x-xliff'
elif houzhui == 'xliff':
    att1["Content-Type"] = 'application/x-xliff'
elif houzhui == 'xll':
    att1["Content-Type"] = 'application/vnd.ms-excel'
elif houzhui == 'xlm':
    att1["Content-Type"] = 'application/vnd.ms-excel'
elif houzhui == 'xls':
    att1["Content-Type"] = 'application/vnd.ms-excel'
elif houzhui == 'xlsm':
    att1["Content-Type"] = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
elif houzhui == 'xlsx':
    att1["Content-Type"] = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
elif houzhui == 'xlt':
    att1["Content-Type"] = 'application/vnd.ms-excel'
elif houzhui == 'xlw':
    att1["Content-Type"] = 'application/vnd.ms-excel'
elif houzhui == 'xm':
    att1["Content-Type"] = 'audio/x-xm'
elif houzhui == 'xmf':
    att1["Content-Type"] = 'audio/x-xmf'
elif houzhui == 'xmi':
    att1["Content-Type"] = 'text/x-xmi'
elif houzhui == 'xml':
    att1["Content-Type"] = 'application/xml'
elif houzhui == 'xpm':
    att1["Content-Type"] = 'image/x-xpixmap'
elif houzhui == 'xps':
    att1["Content-Type"] = 'application/vnd.ms-xpsdocument'
elif houzhui == 'xsl':
    att1["Content-Type"] = 'application/xml'
elif houzhui == 'xslfo':
    att1["Content-Type"] = 'text/x-xslfo'
elif houzhui == 'xslt':
    att1["Content-Type"] = 'application/xml'
elif houzhui == 'xspf':
    att1["Content-Type"] = 'application/xspf+xml'
elif houzhui == 'xul':
    att1["Content-Type"] = 'application/vnd.mozilla.xul+xml'
elif houzhui == 'xwd':
    att1["Content-Type"] = 'image/x-xwindowdump'
elif houzhui == 'xyz':
    att1["Content-Type"] = 'chemical/x-pdb'
elif houzhui == 'xz':
    att1["Content-Type"] = 'application/x-xz'
elif houzhui == 'w2p':
    att1["Content-Type"] = 'application/w2p'
elif houzhui == 'z':
    att1["Content-Type"] = 'application/x-compress'
elif houzhui == 'zabw':
    att1["Content-Type"] = 'application/x-abiword'
elif houzhui == 'zip':
    att1["Content-Type"] = 'application/zip'

相关文章
|
1天前
|
缓存 开发者 Python
探索Python中的装饰器:简化代码,增强功能
【10月更文挑战第35天】装饰器在Python中是一种强大的工具,它允许开发者在不修改原有函数代码的情况下增加额外的功能。本文旨在通过简明的语言和实际的编码示例,带领读者理解装饰器的概念、用法及其在实际编程场景中的应用,从而提升代码的可读性和复用性。
|
2天前
|
设计模式 缓存 监控
Python中的装饰器:代码的魔法增强剂
在Python编程中,装饰器是一种强大而灵活的工具,它允许程序员在不修改函数或方法源代码的情况下增加额外的功能。本文将探讨装饰器的定义、工作原理以及如何通过自定义和标准库中的装饰器来优化代码结构和提高开发效率。通过实例演示,我们将深入了解装饰器的应用,包括日志记录、性能测量、事务处理等常见场景。此外,我们还将讨论装饰器的高级用法,如带参数的装饰器和类装饰器,为读者提供全面的装饰器使用指南。
|
2天前
|
存储 算法 搜索推荐
Python高手必备!揭秘图(Graph)的N种风骚表示法,让你的代码瞬间高大上
在Python中,图作为重要的数据结构,广泛应用于社交网络分析、路径查找等领域。本文介绍四种图的表示方法:邻接矩阵、邻接表、边列表和邻接集。每种方法都有其特点和适用场景,掌握它们能提升代码效率和可读性,让你在项目中脱颖而出。
14 5
|
2天前
|
数据库 Python
异步编程不再难!Python asyncio库实战,让你的代码流畅如丝!
在编程中,随着应用复杂度的提升,对并发和异步处理的需求日益增长。Python的asyncio库通过async和await关键字,简化了异步编程,使其变得流畅高效。本文将通过实战示例,介绍异步编程的基本概念、如何使用asyncio编写异步代码以及处理多个异步任务的方法,帮助你掌握异步编程技巧,提高代码性能。
12 4
|
4天前
|
缓存 开发者 Python
探索Python中的装饰器:简化和增强你的代码
【10月更文挑战第32天】 在编程的世界中,简洁和效率是永恒的追求。Python提供了一种强大工具——装饰器,它允许我们以声明式的方式修改函数的行为。本文将深入探讨装饰器的概念、用法及其在实际应用中的优势。通过实际代码示例,我们不仅理解装饰器的工作方式,还能学会如何自定义装饰器来满足特定需求。无论你是初学者还是有经验的开发者,这篇文章都将为你揭示装饰器的神秘面纱,并展示如何利用它们简化和增强你的代码库。
|
2天前
|
API 数据处理 Python
探秘Python并发新世界:asyncio库,让你的代码并发更优雅!
在Python编程中,随着网络应用和数据处理需求的增长,并发编程变得愈发重要。asyncio库作为Python 3.4及以上版本的标准库,以其简洁的API和强大的异步编程能力,成为提升性能和优化资源利用的关键工具。本文介绍了asyncio的基本概念、异步函数的定义与使用、并发控制和资源管理等核心功能,通过具体示例展示了如何高效地编写并发代码。
11 2
|
4天前
|
机器学习/深度学习 自然语言处理 API
如何使用阿里云的语音合成服务(TTS)将文本转换为语音?本文详细介绍了从注册账号、获取密钥到编写Python代码调用TTS服务的全过程
如何使用阿里云的语音合成服务(TTS)将文本转换为语音?本文详细介绍了从注册账号、获取密钥到编写Python代码调用TTS服务的全过程。通过简单的代码示例,展示如何将文本转换为自然流畅的语音,适用于有声阅读、智能客服等场景。
26 3
|
23天前
|
存储 数据安全/隐私保护 索引
|
6天前
|
设计模式 缓存 测试技术
Python中的装饰器:功能增强与代码复用的艺术####
本文将深入探讨Python中装饰器的概念、用途及实现方式,通过实例演示其如何为函数或方法添加新功能而不影响原有代码结构,从而提升代码的可读性和可维护性。我们将从基础定义出发,逐步深入到高级应用,揭示装饰器在提高代码复用性方面的强大能力。 ####
|
4天前
|
算法 IDE API
Python编码规范与代码可读性提升策略####
本文探讨了Python编码规范的重要性,并深入分析了如何通过遵循PEP 8等标准来提高代码的可读性和可维护性。文章首先概述了Python编码规范的基本要求,包括命名约定、缩进风格、注释使用等,接着详细阐述了这些规范如何影响代码的理解和维护。此外,文章还提供了一些实用的技巧和建议,帮助开发者在日常开发中更好地应用这些规范,从而编写出更加清晰、简洁且易于理解的Python代码。 ####
下一篇
无影云桌面