国产成人AV无码一二三区,少女1到100集,国产精品久久久久精品综合紧,巜公妇之诱感肉欲HD在线播放

文章 > Python常见问题 > python文档怎么看

python文档怎么看

头像

(*-*)浩

2019-08-26 10:47:454536浏览 · 0收藏 · 0评论

查看文档是一个程序员的基本功,这里简单介绍几种查看Python文档的方法,下面以struct??槲?。

help

在交互模式下,help函数是获取文档的好帮手,使用非常简单。

>>> import struct
>>> help(struct)
Help on module struct:
 
NAME
    struct
 
DESCRIPTION
    Functions to convert between Python values and C structs.
    Python bytes objects are used to hold the data representing the C struct
    and also as format strings (explained below) to describe the layout of data
    in the C struct.
 
    The optional first format char indicates byte order, size and alignment:
      @: native order, size & alignment (default)
      =: native order, std. size & alignment
      <: little-endian, std. size & alignment
      >: big-endian, std. size & alignment
      !: same as >
 
    The remaining chars indicate types of args and must match exactly;
    these can be preceded by a decimal repeat count:
      x: pad byte (no data); c:char; b:signed byte; B:unsigned byte;
      ?: _Bool (requires C99; if not available, char is used instead)
      h:short; H:unsigned short; i:int; I:unsigned int;

__doc__

__doc__是每个对象都有的属性,其存放了对象文档。

>>> import struct
>>> struct.__doc__
"Functions to convert between Python values and C structs.\nPython bytes objects are used to hold the data representing the C struct\nand also as format string
s (explained below) to describe the layout of data\nin the C struct.\n\nThe optional first format char indicates byte order, size and alignment:\n  @: native o
rder, size & alignment (default)\n  =: native order, std. size & alignment\n  <: little-endian, std. size & alignment\n  >: big-endian, std. size & alignment\n
  !: same as >\n\nThe remaining chars indicate types of args and must match exactly;\nthese can be preceded by a decimal repeat count:\n  x: pad byte (no data)
; c:char; b:signed byte; B:unsigned byte;\n  ?: _Bool (requires C99; if not available, char is used instead)\n  h:short; H:unsigned short; i:int; I:unsigned in
t;\n  l:long; L:unsigned long;

离线文档

安装Python时会自带一个chm格式的离线文档Python documention,该文档的信息比较全。

离线??槲牡?/strong>

Python针对??榛褂幸桓龅ザ赖奈牡担梦牡翟阡榔髦胁榭?。

在线文档

在浏览器打开https://docs.python.org/3.4/

关注

关注公众号,随时随地在线学习

本教程部分素材来源于网络,版权问题联系站长!

《艳乳欲乱2》免费观看| 《不戴套瑜伽教练3》| 丁字裤阴唇肥大的地方叫什么 | 美女的胸怀| 免费观看已满十八岁电视剧高清版| 茉莉花| 芬太尼在美国是怎么样的存在| 《漂亮的秘书HD》在线观看| 儿媳妇长太漂亮免费观看电视剧| 老公把闺蜜干的嗷嗷叫| 口咬二十八个图片高清| 郑云龙| 女人吃男人鸡要多久恢复| 日韩电影在线观看高清版电视剧| 年轻嫂子| 夫妻二人世界免费看第一集| 《警花交换做爰》| 天美麻花星空影视免费观看电视剧| 芬太尼关税是怎么回事| 女人被公猪钻入子宫有报应吗| CSGO暴躁妹妹免费观看电视剧| 妈妈的绣感| 《献身》李丽珍| B级文件| 2025国产拍视频最好的手机| 《公与媳夫妇:交换》| 我穿水K被同桌C出水了H漫画| 挤牛奶和拔萝卜能同吃吗| 美国禁忌2在线观看电视剧| 小辣椒3美国伦理| 臣卜扌桑扌圭鬲蘑菇| 《与上司做爰HD》| 百色助学网| 韩剧《酒醉热吻》| 性课被老师当教具CAOH视频| 小柔与王叔的第一次相遇是第几集| 《高压监狱》免费完整版满天星| 小妇人在线观看免费版电视剧| 父女大作战1-32集免费| 白日梦我小说| 扌桑辶鬲的照片