一,print函数:使用方式为:函数名(参数)

注:Python使用半角字符;Python大小写敏感;注意英文单词拼写

   1,print用于向控制台输出字符串 

    示例:print("你好吗")  print(2)

Python的 print()函数及注释

2,输出文本时换行:\n

示例:print("锄禾日当午\n汗滴禾下土")

Python的 print()函数及注释

二,注释:对代码进行标注

1,单行注释:#我是单行注释哦 哈哈哈

Python的 print()函数及注释

2,块注释:"""我是块注释"""

Python的 print()函数及注释

 

相关文章:

  • 2022-12-23
  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
  • 2021-10-11
  • 2019-01-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
  • 2021-08-06
  • 2021-06-15
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案