-
python初体验
a) print and input
I have learned that on course, so that is ok. No need to further learn at this point. -
python基础讲解
a) python变量特性+命名规则
a.1 变量特性
是attribute吗?a.2 普通变量,用小写字母,中间用_隔开 全局变量用大写字母,中间用_隔开 实例变量,_开头,其他和普通变量一样 私有实例变量,__双下划线开头,其他和普通变量一样
b) 注释方法
is comment.
c) python中“:”作用
c.1 出现在函数定义语句末尾,表示下面是函数内容
c.2 in dictionary, divide the index and value
d) 学会使用dir( )及和help( )
d.1 dir() output the attributes and methods of any object.
d.2 display the documentation of modules, function.
e) import使用
import pandas. 调包到环境中
import ,… from… 直接用包里的一个功能f) pep8介绍
PEP-8, is a document that provides guidelines and best practices on how to write Python code…
4 python数值基本知识
a) python中数值类型,int,float,bool,e记法等
int 整数, float浮点数, bool:TRUE, False, e记法是说科学计数法还是啥?
b) 算数运算符
+,-,*,/, %(取回除法的余数), **qu幂, // 向下取整
c) 逻辑运算
and / or/ not
d) 成员运算符
if (a in a list): 在return true , 不在return false.
not in 相反
e) 身份运算符
== != 学过
f) 运算符优先