码迷,mamicode.com
首页 > 其他好文 > 详细

2017-07-21

时间:2017-07-22 00:05:12      阅读:226      评论:0      收藏:0      [点我收藏+]

标签:xxx   单行注释   xxxxx   nes   数据类型   ...   operation   class   单行   


1. variables 变量,存储数据以备后用

2.data type 数据类型,如数字,布尔类型等

  numbers,booleans,,,,

3.whitespace 我理解的就是tab,对于结构很重要 感觉是python没有分号 识别比较困难?所以结构很重要?

  important in python, separates statements

4.comments 注释

  single line:# 单行注释用#开头

  multiple lines:  ‘‘‘xxxxxxxx

          xxxxxxxx‘‘‘多行注释用多个‘包起来,但是在某些情况下 如 ‘‘‘ there‘s a gay.‘‘‘,应写成‘‘‘ there\‘s a gay. ‘‘‘

5.arithmetic operations

   +, -, *, /, **(2**3=8,即2的3次幂为8), %(求模)

...

to be continued

2017-07-21

标签:xxx   单行注释   xxxxx   nes   数据类型   ...   operation   class   单行   

原文地址:http://www.cnblogs.com/kingsleyking/p/7220022.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!