輸出
>>> print('hello, world')
hello, world
print()函數也可以接受多個字符串,用逗號“,”隔開,就可以連成一串輸出:
>>> print('The quick brown fox', 'jumps over', 'the lazy dog')
The quick brown fox jumps over the lazy dog
>>> print('100 + 200 =', 100 + 200)
100 + 200 = 300
輸入
>>> name = input()
Michael
name = input('please enter your name: ')
print('hello,', name)