sun_coding

博客园 首页 联系 订阅 管理

内容:

  1:Python的输出

  2:Python的输入

  3:python的注释

Python的输出和注释  

1 print 'hello,world'  #hello,world
2 print 'Hello, World', 'Python'# Hello,world Python
3 print  100 + 200 #300

Python的基本输入

>>> name = raw_input("Please input your name: ")
Please input your name: lip
>>> print "Hello", name
Hello lip

Python的注释

1 #注释的方式1 Python的注释以"#"开头,"#"之后的视为注释的内容,相当于C++的 "//" ,C的"/* */"
2 
3 '''
4 注释的方式2,多行注释
5 '''
6 
7 """
8 注释的方式3,也属于多行注释
9 """

 

posted on 2015-03-06 21:37  孙大蛇  阅读(345)  评论(0)    收藏  举报