- 博客(6)
- 收藏
- 关注
原创 python学习笔记(六)
python学习笔记(六)任务:画小猪佩奇参考:https://blog.csdn.net/zhaogeno1/article/details/80298669输出:代码:import turtle as tt.pensize(3) # 设置画笔的大小t.setup(840,500) # 设置主窗口的大小为840*500t.speed(10) # 设置画笔速度为10t.pu()...
2019-03-08 12:28:09
114
原创 python 学习笔记(五)
python学习笔记(四)Filea. 打开文件方式(读写两种方式)1)File = open (’/resources/data/example1.txt’, ‘w’)with open (’ example1.txt’ , ‘r’) as file:b. 文件对象的操作方法c. 学习对excel 及 csv文件进行操作import pandas as pdexcel:...
2019-03-07 09:18:36
120
原创 python学习笔记(四)
Python 学习笔记(四)1. Define functionsYou can define functions to provide the required functionality. Here are simple rules to define a function in Python:a. Functions blocks begin def followed by the f...
2019-03-04 09:09:43
136
原创 Python学习笔记(三)
Python学习笔记(三)dict字典a.定义A dictionary consists of keys and values. It is helpful to compare a dictionary to a list. Instead of the numerical indexes such as a list, dictionaries have keys. These ke...
2019-03-03 13:24:39
126
原创 Python学习笔记(二)
Python学习笔记(二)列表a. 标志[]b. 基本操作(创建,append(), pop(), remove())创建:list = [‘a’,‘b’]更新:list.append(‘c’)print list[‘a’,‘b’,‘c’]移除–按数位移除list.pop(1)print(list)[‘a’,‘c’]删除–按字符删除list.r...
2019-03-01 11:55:22
52
原创 Python 学习笔记(一)
Python 学习笔记(一)1. 环境搭建官网下载安装(python 编写代码的软件有很多,个人暂时只用python自带的 IDLE 编写,用python shell运行)2. python初体验print and inputprint(…) -数值print(’…’) or print(str(…)) -字符print(" I’m ") or print (’ I’m ’ ) -...
2019-02-27 08:23:42
124
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人