![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
Xiaodata
这个作者很懒,什么都没留下…
展开
-
python 第二次打卡
列表a. 标志list name=[ ’ ', ’ ']b. 基本操作( 创建,append( ),pop( ) ,del( ), 拷贝)append(),在List末尾加上一个,pop(),del list[0] 删掉 list 里第一个元素pop() list.pop(0) ,返回要删的值,确认后可以删除c. 列表相关方法https://www.programiz.c...原创 2019-04-05 09:47:28 · 526 阅读 · 0 评论 -
pythonday 3
dict字典a. 定义A dictionary is a collection which is unordered, changeable and indexed. In Python dictionaries are written with curly brackets, and they have keys and values.b. 创建 字典的方法{index:value,...原创 2019-04-05 10:50:39 · 107 阅读 · 0 评论 -
python day1
python初体验a) print and inputI 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 普通变量,用小写字母,中间用_隔开 ...原创 2019-04-01 11:52:13 · 125 阅读 · 0 评论 -
pythonday6小猪佩奇
用Turtle绘制小猪佩奇代码来自https://mp.weixin.qq.com/s/whtJOrlegpWzgisYJabxOgfrom turtle import*def nose(x,y):#鼻子 (公众号:数据分析联盟)penup()#提起笔goto(x,y)#定位pendown()#落笔,开始画setheading(-30)#将乌龟的方向设置为to_angle/为数字(0...转载 2019-04-11 22:07:39 · 141 阅读 · 0 评论 -
python day4
函数关键字关键字,def?关键字是Python内置的、具有特殊意义的标识符,关键字后面不需要使用括号函数的定义Python 函数之函数定义、调用、传参 函数是组织好的,可以被重复使用的,用来实现单一或相关功能的代码块函数参数与作用域Python作用域在一个Python程序只用变量名时,Python创建、改变或查找变量名都是在所谓的命名空间(一个保存变量名的地方)中进...原创 2019-04-09 04:00:52 · 114 阅读 · 0 评论 -
Python mission5
1.filea.打开文件方式(读写两种方式)import pandapd.read_csvWrite:Data.to_csv()b.文件对象的操作方法文件对象的操作方法a) r:读取模式b) w:写入模式c) a:附加模式d) r+:读取写入模式e) w+:消除文件内容,以读写模式打开f) a+:以读写方式打开文件,并把文件指针移到文件尾g) b:以二进制模式打开文件,...原创 2019-04-10 06:25:45 · 193 阅读 · 0 评论