- 博客(13)
- 收藏
- 关注
原创 学习编程实用方法-亲测有效
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 187 1
原创 一些感悟--关于编程
首先要明确需求是什么?实现这些需求可能会用到哪些知识?(线程,什么库…)标志位的使用,flag,这个很好用字典封装对象,实例的封装。
2019-12-20 17:00:33 97
原创 20191212-DongGuan
set 可用来list去重lambda的使用A 父类 B 子类B.fun(),如果在B中找不到的话,会去A中找,但是在A中如果执行别的function,会优先在B中找,找不到才会去A中找。...
2019-12-12 19:33:19 119
原创 os.walk()
os.walk() returns three values on each iteration of the loop:The name of the current folderA list of folders in the current folderA list of files in the current folder
2019-11-23 11:20:28 149
原创 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 295
原创 *args && **kwargs
*args 并不是往里传个列表。直接传就好。# sum_integers_args.pydef my_sum(*args): result = 0 # Iterating over the Python args tuple for x in args: result += x return resultprint(my_sum(1, 2...
2019-11-22 13:25:51 344
原创 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 176
原创 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 118
原创 mvc
Creating a Calculator With Python and PyQtIn 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 242
原创 PyQt5
QWidget is the base class for all user interface objects or widgets.QGridLayout 中的参数,前两个:row,col后两个:rowSpan,columnSpanFormLayout layout.addRow('Name:', QLineEdit())If your slot functio...
2019-11-20 09:10:31 135
原创 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 216
原创 策略模式-strategy pattern
1.首先明白什么是设计模式:Design Pattern is a solution to a problem in a context.2.其次,为什么学习设计模式我觉得如果我们在工作中并没有使用过任何设计模式,只能说明两点:1).你是一个大神,模式都已在脑中,不需要刻意的去套用某种模式2). 就是你写的code都太简单了,都只能称之为脚本,简单的脚本。(
2019-05-17 21:36:59 129
原创 欢迎使用CSDN-markdown编辑器之01
NumPy 之花式索引你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Markdown编辑器, 可以仔细阅读这篇文章,了解一下Markdown的基本语法知识。新的改变我们对Markdown编辑器进行了一些功能拓展与语法支持,除了标准的Markdown编辑器功能,我们增加了如下几点新功能,帮助你用它写博客:全新的界面设计 ,将会带来全新的写作体验;在...
2019-03-23 13:57:35 90
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人