TASK1
- 环境搭建
1)Anaconda环境配置
2)解释器
在官网上载安装即可
2.python初体验
1)print and input
print(“hello world”)
input(“输入内容:”)
3.python 基础讲解
1)python变量特征+命名规则
变量是用来存储内容的工具
命名规则:字母、数字、下划线,不能以数字开头,不能与下划线一样
区分大小写;
2)注释方法
单行注释
“”" “”" 多行注释
3)python中“:”的作用
不太了解。大概是:后面的缩进内容构成一个代码块
4)学会使用dir()及help()
dir()查看属性
help()查看相应信息
5)import使用
导入模块
6)pep8 介绍
语法规范
4.pyhon 数值基本知识
1)python 中数值类型,int float bool e记法等
int 整数型
float 浮点型
bool 布尔型
2)算数运算符
-
-
- /
\ 取整
% 取余
- /
-
3)逻辑运算符
and or not
4)成员运算符
in not in
5)身份运算符
is is not
6)运算符优先级