随笔分类 -  Python进阶

摘要:参考资源:https://blog.csdn.net/weixin_41190227/article/details/86600821 参考资源:https://www.cnblogs.com/Glory-D/p/7884525.html 总的来说,排序算法共有十大类,即冒泡排序、选择排序、插入排序 阅读全文
posted @ 2019-12-23 21:43 CarreyB 阅读(230) 评论(0) 推荐(0) 编辑
摘要:参考文献1:http://makaidong.com/maikerniuniu/1280_9073599.html 参考文献2:https://www.cnblogs.com/fandx/p/10462913.html A. 变量的存储 [A.1] 概念:在高级语言中,变量是对内存及其地址的抽象。对 阅读全文
posted @ 2019-12-15 22:26 CarreyB 阅读(1689) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-12-03 20:16 CarreyB 阅读(145) 评论(0) 推荐(0) 编辑
摘要:Python中,NumPy(Numerical Python) 是 Python 语言的一个扩展程序库,支持大量的维度数组与矩阵运算,此外也针对数组运算提供大量的数学函数库。 使用前需导入numpy模块 1. 创建矩阵 1 # 导入模块 2 import numpy as np 3 4 # 创建一维 阅读全文
posted @ 2019-10-07 11:19 CarreyB 阅读(4935) 评论(0) 推荐(0) 编辑
摘要:简介:xlwt是Python中往excel中写入数据的模块1. 创建Book工作簿(即excel工作簿) 1 import xlwt 2 workbook = xlwt.Workbook(encoding = 'utf-8') 3 # 创建一个workbook并设置编码形式 2. 添加sheet工作 阅读全文
posted @ 2019-10-02 18:22 CarreyB 阅读(2523) 评论(0) 推荐(0) 编辑
摘要:简介: 在Python中xlrd和xlwt是两个很重要的模块,主要解决Python读写excel数据的接口问题。 1. 数据格式 xlrd所读取的excel数据可能的格式有七种: empty(空的) text(string) number, date, boolean, error, blank(空 阅读全文
posted @ 2019-10-01 22:54 CarreyB 阅读(1867) 评论(0) 推荐(0) 编辑
摘要:A. Python中的函数: 即def定义的一组代码,可以被调用。 1 def func(a, b): 2 c = a + b 3 4 return c B. Python中的模块: 即一个.py文件,在其中可以定义多个函数。 Module.py def dunc1(a, b): c = a + b 阅读全文
posted @ 2019-09-29 22:54 CarreyB 阅读(947) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示