
python
Hellomengke
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
一些感悟--关于编程
首先要明确需求是什么? 实现这些需求可能会用到哪些知识?(线程,什么库…) 标志位的使用,flag,这个很好用 字典封装对象,实例的封装。原创 2019-12-20 17:00:33 · 142 阅读 · 0 评论 -
20191212-DongGuan
set 可用来list去重 lambda的使用 A 父类 B 子类 B.fun(), 如果在B中找不到的话,会去A中找,但是在A中如果执行别的function,会优先在B中找,找不到才会去A中找。 ...原创 2019-12-12 19:33:19 · 156 阅读 · 0 评论 -
os.walk()
os.walk() returns three values on each iteration of the loop: The name of the current folder A list of folders in the current folder A list of files in the current folder原创 2019-11-23 11:20:28 · 213 阅读 · 0 评论 -
csv
If your CSV files doesn’t have column names in the first line, you can use the names optional parameter to provide a list of column names. You can also use this if you want to override the column name...原创 2019-11-23 11:07:42 · 338 阅读 · 0 评论 -
*args && **kwargs
*args 并不是往里传个列表。直接传就好。 # sum_integers_args.py def my_sum(*args): result = 0 # Iterating over the Python args tuple for x in args: result += x return result print(my_sum(1, 2...原创 2019-11-22 13:25:51 · 396 阅读 · 0 评论 -
Object-Oriented Programming (OOP) in Python 3
It’s important to note that a class just provides structure—it’s a blueprint for how something should be defined, but it doesn’t actually provide any real content itself. The Animal() class may speci...原创 2019-11-21 09:42:43 · 262 阅读 · 0 评论 -
python thread
A daemon thread will shut down immediately when the program exits. If a program is running Threads that are not daemons,then the program will wait for those threads to complete before it terminates. ...原创 2019-11-20 10:49:07 · 159 阅读 · 0 评论 -
学习编程实用方法-亲测有效
Slow down. The more you understand, the less you have to memorize. Don’t just read. Stop and think. When the book asks you a question, don’t just skip to the answer. Imagine that someone really is a...原创 2019-11-20 09:55:53 · 245 阅读 · 1 评论 -
mvc
Creating a Calculator With Python and PyQt In this section, you’re going to develop a calculator using the Model-View-Controller (MVC) design pattern. This pattern has three layers of code, each with ...原创 2019-11-20 09:48:11 · 295 阅读 · 0 评论 -
PyQt5
QWidget is the base class for all user interface objects or widgets. QGridLayout 中的参数,前两个:row,col 后两个:rowSpan,columnSpan FormLayout layout.addRow('Name:', QLineEdit()) If your slot functio...原创 2019-11-20 09:10:31 · 174 阅读 · 0 评论 -
Head First Python系列
(一):List 我觉得在正式开始之前先应该回顾一下,自己知道哪些和list相关的知识,或者说自己用到了哪些特性。 1.创建 a = [] a = list() 2.添加 a.append(elem) a.insert(index, elem) 3.删除 a.pop(index) a.remove(elem)(does not return it) 4.排序 a.sort() sorte...原创 2019-11-15 11:33:12 · 280 阅读 · 0 评论