赞
踩
# 注释内容
多⾏注释
- """
- 第⼀⾏注释
- 第⼆⾏注释
- 第三⾏注释
- """
- '''
- 注释1
- 注释2
- 注释3
- '''
示例代码:
- # 输出hello world
- print('hello world')
- print('hello Python') # 输出(简单的说明可以放到⼀⾏代码的后⾯,⼀般习惯代码后⾯添加
- 两个空格再书写注释⽂字)
- """
- 下⾯三⾏都是输出的作⽤,输出内容分别是:
- hello Python
- hello itcast
- hello itheima
- """
- print('hello Python')
- print('hello itcast')
- print('hello itheima')
- '''
- 下⾯三⾏都是输出的作⽤,输出内容分别是:
- hello Python
- hello itcast
- hello itheima
- '''
- print('hello Python')
- print('hello itcast')
- print('hello itheima')
![](https://csdnimg.cn/release/blogv2/dist/pc/img/newCodeMoreWhite.png)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。