Python -- 3 basic syntax
catalogue
1, Function
1. Function function
2. Use steps of function
3. Function parameters
4. Function return value function
5. Application: calculate the sum of any two numbers and save the results
6. Documentation for functions
7. Nested calls to functions
8. Variable scope
9. Function parameters
10. Unpacking
11. Quote
2, App ...
Posted by cainfool on Wed, 09 Feb 2022 08:16:54 +0100
Depth first search - maze problem (jisuanke - Blue Bridge Cup national competition training camp)
Depth first search maze problem
Video learning link: https://www.bilibili.com/video/BV1pk4y1z76B Depth first search: referred to as dfs, is a classic search algorithm.
Recursive review
We have studied recursion before. We have implemented some algorithms using recursion:
# 1. Recursive factorial
# n! = 1*2*3*4******n
def factorial(n):
...
Posted by leap500 on Wed, 09 Feb 2022 08:09:01 +0100
A super powerful library -- UIAutomator2
For small partners who have just come into contact with mobile UI automation, we should all start with appium, but appium needs a troublesome environment and is relatively troublesome to use (to obtain elements, we need to use adb's uiautomatorview2). Today, Xiaobian recommends a super easy-to-use library. Compared with appium, it's a "laz ...
Posted by haironfire on Wed, 09 Feb 2022 06:39:32 +0100
Crawl Ctrip scenic spot review data [latest method], and analyze the crawling method of page Jump in AJAX
This article is only for technical learning. Welcome to reprint it. Please indicate the source
Because my friend needs scenic spot data to participate in mathematical modeling, and I just know a little, so I helped him write crawler code. Some crawler methods were found on the Internet, but when obtaining the scenic spot ID, it was found ...
Posted by turbocueca on Wed, 09 Feb 2022 06:26:41 +0100
Basic learning notes and after class exercises of MOOCPython language programming in University of China Week 7 (Nanjing University of Posts and Telecommunications)
previously on
1.Basic learning notes and after-school exercises of MOOCPython language programming in University of China for 1-4 weeks (Nanjing University of Posts and Telecommunications)
2.Basic learning notes and after-school exercises of MOOCPython language programming in University of China for 5-6 weeks (Nanjing University of Posts ...
Posted by JohnMC on Wed, 09 Feb 2022 05:46:14 +0100
Still writing a lot of if to judge? Try replacing it with a rule executor
Business scenario
Recently, I received a small demand in the company, which needs to expand the existing trial user application rules. Our scenario is roughly as follows:
if (Overseas users) {
return false;
}
if (Billing user) {
return false;
}
if (Unpaid user && No longer service period) {
return false
}
if (Transfer to intro ...
Posted by pugs1501 on Wed, 09 Feb 2022 02:23:03 +0100
Shooting range weight raising collection
It's said that linux raised the right, but when sorting out, you involuntarily wrote the contents of windows, which turned into a hodgepodge. You don't know whether it's good or bad
https://github.com/sagishahar/lpeworkshop
Windows Rights:
FuzzySecurity | Windows Privilege Escalation Fundamentals
https://github.com/netbiosX/Checklis ...
Posted by themaxx113 on Wed, 09 Feb 2022 02:05:45 +0100
[machine learning notes] tear GBDT by hand
Source: https://iyinst.github.io/2021/05/19/%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0-%E6%89%8B%E6%92%95GBDT/
The principle of gradient lifting decision tree (GBDT) will not be repeated. Unfamiliar students can refer to Mr. Li Hang's statistical learning method. Here is an implementation of GBDT.
Before coding, we should first co ...
Posted by izy on Wed, 09 Feb 2022 01:30:10 +0100
Python quick start multithreading and multiprocessing
Python quick start multithreading and multiprocessing
Multithreading
Meaning of multithreading
Process can be understood as a program unit that can run independently. For example, opening a browser opens a browser process; Open a text editor, which opens a text editor process. But a process can handle many things at the same time. For exa ...
Posted by hthighway on Wed, 09 Feb 2022 00:58:57 +0100
Python crawling to the second-hand housing community details page data of anjuke.com
Hello, guys, the first two blog cases basically introduced the basic process of crawler. This blog began to put a heavy bomb, and the difficulty coefficient increased a little (difficulty 1: involving secondary page crawling, difficulty 2: crawling a total of 16 fields). The main content of this article: Take Shijiazhuang City as an example, cr ...
Posted by joeysarsenal on Wed, 09 Feb 2022 00:20:35 +0100