①在程序行前面加“#”

②将需要注释的代码用'''----''' 包起来,此方法类似C的注释方法

③方法一的快捷方式:将需要注释的代码选住然后利用“Ctrl+/”进行注释

# test=input('>>>')
# print(test)
# l=len(test)
# print(l)
# r=range(l)
# for item in r:
#     print(item,test[item])

 

相关文章:

  • 2022-12-23
  • 2021-07-29
  • 2022-12-23
  • 2022-01-07
  • 2021-05-25
  • 2021-08-20
  • 2022-02-11
  • 2022-12-23
猜你喜欢
  • 2022-01-31
  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
  • 2021-11-07
  • 2022-02-05
  • 2021-12-29
相关资源
相似解决方案