您的位置:首页 > 编程语言 > Python开发

My first Python script

2017-01-10 13:11 288 查看
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 ~
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  python