input() 输入函数
input()
print() 输出函数
print()
程序一运行,会首先打印出please enter your name:,这样,用户就可以根据提示,输入名字后,得到hello, xxx的输出:
please enter your name:
hello, xxx
name = input('please enter your name: ') print('hello,', name)
输出的时候 ,分隔开,会自动加一个空格
,