•数字运算符:html
•+ - * / %python
•git
•关系运算符:函数
•== != < > >= <=this
•赋值运算符:spa
•= += -= c -=a c=c-a.net
•逻辑运算符:htm
•and or notutf-8
•Python只因此简单,是由于赋值一个变量的时候,不须要是声明这个变量的类型开发
•整型 int
•a = 10
•B = -20
•int(3.5)
•布尔类型 bool
•B = true
•b = false
•浮点型 float
•round(float, ndigits)
•Float表明的数字, ngigits表明的是精度
•大的规则是四舍六入
•在五的状况上是有所不一样
•http://www.runoob.com/w3cnote/python-round-func-note.html
•字符串 str
•在python中,注释用#号标识,井号后面的内容都会被python解释器忽略,也能够在头文件后面直接添加字符串,来解释该项目或者改文件的做用或者解释说明等。
•#!/usr/bin/env python
•# -*- coding:utf-8 -*-
•# @Time : 2017/4/8 19:33
•# @Author : lingxiangxiang
•# @File : test.py
•''' this file is a test file.'''
•推荐你们在写每一个功能,每一个函数,的时候,都须要注释你所写的功能是什么,这样给后期的开发节省和代码重构有很大帮助。