從零開始學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. {}(空字典)
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章