- 博客(6)
- 收藏
- 关注
原创 python学习笔记(六)
python学习笔记(六) 任务:画小猪佩奇 参考:https://blog.youkuaiyun.com/zhaogeno1/article/details/80298669 输出: 代码: import turtle as t t.pensize(3) # 设置画笔的大小 t.setup(840,500) # 设置主窗口的大小为840*500 t.speed(10) # 设置画笔速度为10 t.pu()...
2019-03-08 12:28:09
198
原创 python 学习笔记(五)
python学习笔记(四) File a. 打开文件方式(读写两种方式) 1)File = open (’/resources/data/example1.txt’, ‘w’) with open (’ example1.txt’ , ‘r’) as file: b. 文件对象的操作方法 c. 学习对excel 及 csv文件进行操作 import pandas as pd excel:...
2019-03-07 09:18:36
172
原创 python学习笔记(四)
Python 学习笔记(四) 1. Define functions You 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
170
原创 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
188
原创 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
81
原创 Python 学习笔记(一)
Python 学习笔记(一) 1. 环境搭建 官网下载安装 (python 编写代码的软件有很多,个人暂时只用python自带的 IDLE 编写,用python shell运行) 2. python初体验 print and input print(…) -数值 print(’…’) or print(str(…)) -字符 print(" I’m ") or print (’ I’m ’ ) -...
2019-02-27 08:23:42
178
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅