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

关注

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

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

把腿扒开让我添30分钟| 天美麻花星空高清MV播放音乐| 把她日出水了好紧大爽了视频| 非洲女人免费观看大全电视剧| 地下室SMS录制的全部内容| 顶到里面了~疼| 密爱电影版完整版免费观看高清| 狼人加鲁鲁兽天赋澳彩心水| 日本女RAPPER| 父亲开了两个女儿包演员表| 初中小姐姐脚丫踩在男生困困| 《伦敦空姐美版2023》| 《酒店激战》动漫1-5集免费观.| 少女たちよ观看免费高清电视剧 | 姐妹花破瓜双飞记的寓意和象征意...| 芬太尼关税| 美丽小洞5荷尔蒙| 男同桌硬了把我内裤也脱了| 坤坤寒进桃子里在线看歌词 | 国产X7X7X7X7X7 性价..| 你对着摄像头C自己给我看| 天美麻花星空影视免费观看电视剧| 《一滴都不许漏》何泽城林荫| 他的大手在秘密花园游走漫画| 免费高清在线观看免费的PPT软...| 《请好好疼爱里面》免费观看| WWW.麻豆都传媒| 欧美黑人狂躁日本妞| 老人玩小处雌女视频的意义| 每日大赛 反差吃瓜爆料合集视频| 你对着摄像头C自己给我看| 桃色三国| 俄罗斯少女2免费观看| 中字《喝醉的丈夫被结城送回家》 | 《警花交换做爰》| 成品网站1.1.719| 密爱在线观看| 为什么男的用手抠女的信道| 唐朝豪放女在线观看| 两人一起做AJ的视频教程| 小洞流口水了 是不是饿了