![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python3学习
Melody°
这个作者很懒,什么都没留下…
展开
-
Python3几种排序算法
冒泡排序bubble_sortdef bubble_sort(num):for i in range(len(num) - 1): # 这个循环负责设置冒泡排序进行的次数for j in range(len(num) - i - 1): # j为列表下标if num[j] > num[j + 1]:num[j], num[j + 1] = num[j + 1], num[j]...原创 2019-07-17 14:59:27 · 153 阅读 · 0 评论 -
Python连接MySQL数据库并从EXCLE读取文件实现增删改查
import pymysqlimport xlrdimport xlsxwriterconn = pymysql.connect('localhost', 'root', '123456', 'student')class AddressBook: def selectInfo(self): cursor = conn.cursor() # 使用Cursor...翻译 2019-07-17 14:59:13 · 143 阅读 · 0 评论