吴振虎

导航

day 3:注释,缩进

本节内容:

  1,注释

  2,缩进

1,注释:

  使用#可以注释单行

# print("hello world")

  三个双引号也可以注释多行

"""
print("hello world")
print("hello world")
print("hello world")
print("hello world")
"""

  也可以使用三个单引号来实现

'''
print("hello world")
print("hello world")
print("hello world")
print("hello world")
'''

 

2,缩进:

在python中缩进官方建议是使用4个空格,但可以使用编辑器的时候,设置一个tab键就等于4个空格键

 

posted on 2017-09-25 15:38  长生帝君  阅读(158)  评论(0编辑  收藏  举报