學習Python的第一天

學習Python的第一天

輸出

  • 一般輸出
print('hello')
  • 多個字符,用逗號“,”隔開
print('The day is full','of surprise')
  • 打印帶計算的數
print('100+200=',100+200)

輸入

  • 記住跟python2不同
name=input()
  • 當然也可以帶提示的輸入
name=input('please enter your name')
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章