python基本语法

python基本语法

基本语法

  • python语法严格区分大小写
  • python每一行都是一条语句,以换行结束
  • 每一行语句长度不要过长,可以通过''换行
  • python是缩进严格控制的
  • 使用'#'进行注释
# 输出打印
print('hello world!')
# 代码过长使用 \换行
print('Although it was signed into law just last month, grassroots groups tasked \with wading through its aftermath told Newsweek that its effects are already being felt.')
# 注释
# 这是一行注释


上一篇:linux – 找出glibc编译选项


下一篇:The 2021 ICPC Asia Regionals Online Contest (I)补题