aisowe

怎样在python中写注释

python中的注释是以井号: # 开头, 一般会在#后加一个空格.

  

# This is a comment
print("Hello, World!")

 

多行注释的语法是三引号: \'\'\' 或 """

\'\'\'
这是
多行注释
\'\'\'

"""
这也是
多行注释
"""

print("Hello, World!")

 

 

   

 

分类:

技术点:

相关文章:

  • 2021-10-20
  • 2022-12-23
  • 2021-09-27
  • 2021-11-17
  • 2021-12-25
  • 2021-12-26
  • 2022-02-09
猜你喜欢
  • 2021-11-06
  • 2021-12-29
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
相关资源
相似解决方案