一:代码
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.'
二:附加练习
1:让你的脚本再多打印一行。
2:让你的脚本只打印一行。
3:“#”字符的作用。
答:“#”是注释。
注:
1:""" """ 和''' '''是多行注释。
2:编码问题
解决办法:①代码首行添加“# _*_ coding:utf-8 _*_”即可
②Python输出中文。汉字前加u即可。例如:u“中国”