首页 > 编程语言 > 详细

【Python基础】03_Python中的命名和关键字

时间:2019-07-28 09:13:56      阅读:101      评论:0      收藏:0      [点我收藏+]

1.Python中的关键字:

技术分享图片

[‘False‘, ‘None‘, ‘True‘, ‘and‘, ‘as‘, ‘assert‘, ‘break‘, ‘class‘, ‘continue‘, ‘def‘, ‘del‘, ‘elif‘, ‘else‘, ‘except‘, ‘finally‘, ‘for‘, ‘from‘, ‘global‘, ‘if‘, ‘import‘, ‘in‘, ‘is‘, ‘lambda‘, ‘nonlocal‘, ‘not‘, ‘or‘, ‘pass‘, ‘raise‘, ‘return‘, ‘try‘, ‘while‘, ‘with‘, ‘yield‘]

2.Python命名规则:

参考Python 风格指南 :

https://zh-google-styleguide.readthedocs.io/en/latest/google-python-styleguide/contents/

  • 每个单词都使用小写字母
  • Python标识符区分大小写
  • 单词与单词之间使用_下划线连接

【Python基础】03_Python中的命名和关键字

原文:https://www.cnblogs.com/dujinyang/p/11257366.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!