![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
Justin-G
这个作者很懒,什么都没留下…
展开
-
Python 基础笔记总结----七月在线Python课程笔记
Python基础总结大纲Python 的安装环境Jupyter notebook的基本使用Python 的循环,判断Python 的数据结构Python 的面向对象Python 的内置函数和内置库Python 的第三方库Jupyter notebook的MagicLine Magic 对一行代码Cell Magic 对一个Cell内的所有代码Line Magic%ls...原创 2019-05-09 15:58:26 · 755 阅读 · 0 评论 -
Python的早期练习题-1
这是一些从我的github repo 拿回来的很早的笔记python 的脚本式运行%run d:/1.py这是脚本式运行Python!练习题1、 求从1到100的数字中所有能既能被3整除,又能被5整除的数字有哪些。LsNum = []for i in range(1,101): if i%3 == 0 and i%5 == 0 : LsNum.ap...原创 2019-05-22 14:03:51 · 537 阅读 · 0 评论 -
Python的早期练习题-2
练习1、- 使用列表推导式找出单词长度大于n的单词ls = ["google","apple","hello","battle"]n = 5for item in ls: if len(item) > n: print(item)googlebattle2、- 使用列表推导式寻找两个列表中的相同元素ls1 = ["google","apple",...原创 2019-05-22 14:06:44 · 594 阅读 · 0 评论 -
基础数据算法--更新中
排序算法冒泡排序原理:通过不断与相邻比较,交换位置,实现排序,其重复次数为排序的长度减一。ls = list(range(90))random.shuffle(ls)print(ls)[53, 24, 22, 30, 58, 3, 83, 14, 45, 85, 43, 13, 66, 68, 63, 54, 38, 37, 86, 31, 15, 47, 17, 55, 81, 4...原创 2019-05-22 14:09:42 · 161 阅读 · 0 评论