直接看代码吧,很简单:
print('hello,world')
print('hello','world')
print('100 + 200 = ',100+200)
name = input()
print('hello,',name)
name = input('please enter your name ')
print('hello',name)
运行的时候是这样:
V_XKANGFAN-MC10:lizi v_xkangfan$ python demo.py
hello,world
hello world
V_XKANGFAN-MC10:lizi v_xkangfan$ python demo.py
hello,world
hello world
100 + 200 = 300
fanxiaokang
hello, fanxiaokang
please enter your name fanxiaokang
hello fanxiaokang
很简单,记住就好。