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.')
# 注释
# 这是一行注释


posted @ 2021-09-14 11:50  骑着蜗牛路过你的风景  阅读(64)  评论(0)    收藏  举报