韩漫免费漫画在线观看方法,《好好疼爱里面》免费看,年轻漂亮的女士护士内衣,妈妈醉酒后把我当爸爸电视剧

文章 > 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/

关注

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

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

憋尿白丝小肚子凸起高冷知乎| 换着玩人妻HD中文字幕| 豪门贵妇猎美录TXT| 禁忌:家庭密码| 《老公今晚我加班》日剧| 韩国三级有夫之妇| 《慈母夜吟》完整版| 免费观看已满十八岁电视剧直播| 小辣椒3美国伦理| 《火车服务》免费观看| 在电影院里拨开内裤挺进| 黑人与女人猛交XxXX| 《女仆教育》动漫第一季| 《玉尺经》完整版| 传奇大掌柜电视剧全集免费播放| 男生把小困困放到女生困里视频| 巨茎挺进李淑芬的体内视频| 下面流乳白色的水的原因| 按摩师把我添高潮了6次| 少妇激情偷公乱140章| 戴着小玩具练瑜伽| 公与媳中文字幕乱码的预防方法| 咖啡全国十大品牌| B站暴躁姐的丈夫是干什么的| 交换朋友的老婆2中字谜给看| 啵啵浏览器| 毛片| 扌雷辶鬲的小说章节| 15岁的少女与狗高清电视| 女儿与爸爸高清免费版电视剧| 避孕套怎么用| 快拨出天我是你母亲歌词监控| 《炸裂吧!巨棒》免费阅读漫画 | 美女和帅哥一起努力生产豆浆的视..| 90多岁老太太阴部下坠怎么办| 邻居熟妇的乳峰| 成都私人情侣免费看电视剧的软件 | 母与子免费观看大全电视剧| 天美麻花高清在线看电视剧| 女性抹胸开襟哺乳衣的注意事项 | 郑云龙