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 命令:换行