IO函数用法实例

xiaoxiao2021-02-28  120

print('hello, world') print('The quick brown fox', 'jumps over', 'the lazy dog')

print(100 + 200)

name = input() print('hello,', name)    ###name为变量,print('hello,', name) 实际上等于 print('hello,')+  print(name)

name = input('please enter your name: ')   ##### 注意有冒号:

print('Hello, %s' % 'world') :格式化输出

转载请注明原文地址: https://www.6miu.com/read-42838.html

最新回复(0)