print 打印内容
raw_input用户输入
第一个学习脚本:
-----------------------------------------------------------
#usr/bin/python
print 'hello,world'
print 'The quick brown fox','jump over','the lazy dog'
print '100+200=', 100+200
name = raw_input('please input your name:\n')
print 'hello',name
------------------------------------------------------------
执行后的输出:
-------------------------------------------------------------
hello,world
The quick brown fox jump over the lazy dog
100+200= 300
please input your name:
nana
hello nana
------------------------------------------------------------
OK, that's for today ~
raw_input用户输入
第一个学习脚本:
-----------------------------------------------------------
#usr/bin/python
print 'hello,world'
print 'The quick brown fox','jump over','the lazy dog'
print '100+200=', 100+200
name = raw_input('please input your name:\n')
print 'hello',name
------------------------------------------------------------
执行后的输出:
-------------------------------------------------------------
hello,world
The quick brown fox jump over the lazy dog
100+200= 300
please input your name:
nana
hello nana
------------------------------------------------------------
OK, that's for today ~