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

学《learn python the hard way》(1)

2013-08-18 15:54 260 查看
做了两课练习:

ex1.py

#print "Hello World!"
#print "Hello Again"
#print "I like typing this."
#print "This is fun."
#print 'Yay! Printing.'
#print "I'd much rather you 'not'."
#print 'I "said" do not touch this.'
print 'what the deference?'
练习print

ex2.py

# A comment, this is so you can read your program later.
# Anything after the # is ignored by python.

print "I could have code like this." # and the comment after is ignored

# You can also use a comment to "disable" or comment out a piece of code:

print "This will run."
练习注释#
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: