1 print 语句 尾端的逗号

end1 = "C"
end2 = "h"
end3 = "e"
end4 = "e"
end5 = "s"
end6 = "e"
end7 = "B"
end8 = "u"
end9 = "r"
end10 = "g"
end11 = "e"
end12 = "r"

# watch that comma at the end.  try removing it to see what happens
print end1 + end2 + end3 + end4 + end5 + end6,
print end7 + end8 + end9 + end10 + end11 + end12

结果:
Cheese Burger

若没有逗号
Cheese
Burger

2 3个双引号的使用
引号之间不能有空格
 

相关文章:

  • 2022-02-22
  • 2021-08-31
  • 2021-09-18
  • 2021-12-29
  • 2022-01-14
  • 2021-10-27
  • 2021-07-07
  • 2021-04-09
猜你喜欢
  • 2021-09-16
  • 2021-10-31
  • 2022-01-23
  • 2021-11-21
  • 2021-05-27
  • 2022-02-10
  • 2021-12-29
相关资源
相似解决方案