用法:
nntplib.decode_header(header_str)
解碼標頭值 un-escaping 任何轉義的非 ASCII 字符。
header_str
必須是str
對象。返回未轉義的值。建議使用此函數以人類可讀的形式顯示一些標題:>>> decode_header("Some subject") 'Some subject' >>> decode_header("=?ISO-8859-15?Q?D=E9buter_en_Python?=") 'Débuter en Python' >>> decode_header("Re: =?UTF-8?B?cHJvYmzDqG1lIGRlIG1hdHJpY2U=?=") 'Re: problème de matrice'
相關用法
- Python nntplib.NNTP.getcapabilities用法及代碼示例
- Python nntplib.NNTP.descriptions用法及代碼示例
- Python nntplib.NNTP.article用法及代碼示例
- Python nntplib.NNTP.newgroups用法及代碼示例
- Python nntplib.NNTP用法及代碼示例
- Python nntplib.NNTP.over用法及代碼示例
- Python nntplib.NNTP.stat用法及代碼示例
- Python numpy.less()用法及代碼示例
- Python numpy.polynomial.hermite.hermmul用法及代碼示例
- Python numpy.seterrobj用法及代碼示例
- Python numpy.tril()用法及代碼示例
- Python numpy.around用法及代碼示例
- Python numpy.random.standard_normal()用法及代碼示例
- Python numpy.select用法及代碼示例
- Python numpy.fft.irfft2用法及代碼示例
- Python numpy.polynomial.hermite_e.hermemul用法及代碼示例
- Python numpy.fft.irfftn用法及代碼示例
- Python numpy.nonzero()用法及代碼示例
- Python numpy.maximum_sctype()用法及代碼示例
- Python numpy.ma.dstack用法及代碼示例
注:本文由純淨天空篩選整理自python.org大神的英文原創作品 nntplib.decode_header。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。