国产成人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/

关注

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

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

公交车舒婷的奶头被农民工吸了| 成品PPT网站大片入口| 女生频道| 胬肉(产乳)BY金银花露| 《厨房激战5》完整版在线观看| B站暴躁姐的丈夫是干什么的| 他扒开我小滨添我三男一女视频 | 性火| 女儿与爸爸高清免费版电视剧| 赵局长含着小婷的双乳| 妈妈在家穿超薄内裤的注意事项| 玛莉娜1984| 我把刘姨俩腿扛在肩上是哪一集的| 杨贵妃颤抖双乳呻吟求欢电影 | 鲁鲁影院免费观看电视剧电影| 韩国男按摩师吸乳房会得乳腺瘙吗| 《黏糊糊的你》免费观看| 灭火宝贝| 小辣椒3美国伦理| 1尿到0的直肠里| 麻花传剧原创MV在线看完整版高..| 女生的全身照曝光| 羞答答在线观看免费高清电视剧| 《玉尺经》完整版| 善良的嫂子| 深度开发1V6笔趣阁金银花露 | 国产| 苏软软汆肉的日常 花卷| 母与子免费观看大全电视剧邻居大..| 在线观看片免费人成视频| 《黑人性奴2》免费观看| 双男床上剧烈运动会怎么消除| 爸爸缓慢有力送女儿的文案| 摸腿吻戏| 兽父1到16集一口气看完| 小俊在雪姨身上耕耘小说免费阅读| 特级毛片《武则天》| 欧美| 儿子双飞妈妈和女儿的小说| 小川亚沙美| 《再来一次好吗》免费观看