Python中的注释
来源:互联网 发布:不要网络的游戏 编辑:程序博客网 时间:2024/06/05 23:40
Python中的注释以 # 号开头,直至物理行的行尾结束。可是出现在字符串中则失去注释效果,仅被当作普通的#号。
Some examples:
# this is the first commentspam = 1 # and this is the second comment # ... and now a third!text = "# This is not a comment because it's inside quotes."Comments in Python start with the hash character,
#
, and extend to the end of the physical line. A comment may appear at the start of a line or following whitespace or code, but not within a string literal. A hash character within a string literal is just a hash character. Since comments are to clarify code and are not interpreted by Python, they may be omitted when typing in examples. 0 0
- Python/Django中的注释
- python中的注释
- Python中的注释
- Python中的注释
- Python中的注释写法
- Python中的注释
- Python中的注释规范
- Python中的注释
- [Language]Python中的注释
- python中的注释
- python中的注释
- python中的注释行和注释块
- python中的中文注释问题
- 注释在Python中的使用
- Python中的单行、多行、中文注释
- Multi-line Comments in Python / Python中的多行注释
- 【Python】Python中的多行注释文档编写风格汇总
- Python注释
- 数据结构之链表
- iOS使用StroryBoard页面跳转及传值
- JSP 页面重定向
- Swift——分支guard的使用
- Android群英传 第一章
- Python中的注释
- .net中的Queue和Stack
- OPENCV 3 的 extra module
- UNIX常用命令行指令(1)(基本目录操作)
- 网页爬虫获取课程信息
- 点集的视点特征直方图的评估
- 移动端自动化测试环境安装步骤(appium)
- 文件传输时,文件名乱码(setContentDispositionFormData)
- jquery选择器之获取父级元素、同级元素、子元素