从零开始学python

print

print输出默认带上换行,例如

print "hello, world!"

符串后会自动加一个换行。如果不想加上换行,那么可以

print "hello, world!",
print "oh, beautiful world!",

执行结果:

hello, world! oh, beautiful world!

添加了一个空格 

FALSE表示

  1. None
  2. False(布尔类型)
  3. 所有的值为零的数(0(整型)、0.0(浮点型)、0L(长整型)、0.0+0.0j(复数))
  4. ""(空字符串)
  5. [](空列表)
  6. ()(空元组)
  7. {}(空字典)
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章