用法:
NNTP.stat(message_spec=None)
發送
STAT
命令,其中message_spec
是消息 ID(包含在'<'
和'>'
中)或當前組中的文章編號。如果省略message_spec
或None
,則考慮當前組中的當前文章。返回一個三元組(response, number, id)
,其中number
是文章編號,id
是消息 ID。>>> _, _, first, last, _ = s.group('gmane.comp.python.devel') >>> resp, number, message_id = s.stat(first) >>> number, message_id (9099, '<20030112190404.GE29873@epoch.metaslash.com>')
相關用法
- Python nntplib.NNTP.getcapabilities用法及代碼示例
- Python nntplib.NNTP.descriptions用法及代碼示例
- Python nntplib.NNTP.article用法及代碼示例
- Python nntplib.NNTP.newgroups用法及代碼示例
- Python nntplib.NNTP.over用法及代碼示例
- Python nntplib.NNTP用法及代碼示例
- Python nntplib.decode_header用法及代碼示例
- 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.NNTP.stat。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。