學習Python的第一天
輸出
- 一般輸出
print('hello')
- 多個字符,用逗號“,”隔開
print('The day is full','of surprise')
- 打印帶計算的數
print('100+200=',100+200)
輸入
- 記住跟python2不同
name=input()
- 當然也可以帶提示的輸入
name=input('please enter your name')
print('hello')
print('The day is full','of surprise')
print('100+200=',100+200)
name=input()
name=input('please enter your name')