您的位置:首页 > 运维架构 > Shell

习题1 第一个程序

2016-07-12 08:26 411 查看
一开始连打字都打不对

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.再来一行Print即可

print '.......'
2.只打印一行可以用#注释

#print "Hello world!"
#print "Hello Again"
#print "I like typing this."
#print "This is fun."
#print 'Yay!Printing'
#print 'I "said" do not touch this.'
print '......'


3.所以#确实是注释功能

==========================================================================================================

输入中文请加入

# -*- coding: utf-8 -*-


有没有空格都行
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  powershell python windows