python day1

  1. python初体验
    a) print and input
    I have learned that on course, so that is ok. No need to further learn at this point.

  2. 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) 运算符优先
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值