Python学习1-print #

上一篇 / 下一篇  2014-06-25 14:18:53 / 个人分类:笨办法学Python

$ex1.py 源码
# -- coding: utf-8 --
# 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 ("One more time")

运行结果:
I "said" do not touch this.
One more time

Note:
1.print()方法输出 
2.#为注释符
3.# -- coding: utf-8 -- 表示使用了 unicode UTF-8 编码

TAG:

 

评分:0

我来说两句

Open Toolbar