learn Python the hard way EX1

来源:互联网 发布:魔方小站淘宝店 编辑:程序博客网 时间:2024/05/29 09:18

notepad++输入如下,另存到a下

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 "\n"

powershell下

cd a

python ex1.py

输出如下

hello world!
hello again
I like typing this.
This is fun.
Yay! Printing.
I "said" do not touch this.


#多打印一行,我的理解是多输出一行空白,用\n命令实现。

\n 命令:换行

原创粉丝点击