第一课 python基础

寻求帮助:

help(帮助),dir(pd)

import pandas ad pd

help(pd)

dir(pd)

2.python程序基础

+-*/ // **

4+5=9

4-5.1=-1.09999999

6/4=1.5 pyhton3

6//4 = 1

4**0.5 = 2.0

4%3= 1

变量:

基本数据类型

int,float,double,string,bool,

列表/List:

list是一种python的数据结构,表示一连串数据的集合

list之间可以加法拼接

list + list2

list.append 添加元素到末尾

list()

["my name is" + name for name in names];

集合/set无重复

原文地址:https://www.cnblogs.com/coolcold/p/7594228.html