Beginner crawler (11) -- stock data analysis, crawler learning is temporarily over

  I finally wrote the last article, two days later than I said before. This series lasted about 23 days (not counting today). On average, except for this one, it basically conforms to the Flag I set up at the beginning. Although the actual learning time is less than half, such learning efficiency is still too low. My overall course progres ...

Posted by svan_rv on Wed, 18 May 2022 17:11:54 +0300

Leetcode - 3Sum (ideas to solve problems, refer to other people's code optimization, and wrong solutions)

Topic description Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. Now given an array of n integers, look for three numbers that add up to 0. Find all the different groups, each group consists of three numbers, and the sum of the t ...

Posted by BlueSkyIS on Wed, 18 May 2022 09:50:36 +0300

Python 3.11 is 60% faster than 3.10: using bubble sorting and recursive function comparison test

Python 3.11 pre release has been released. The update log mentions:Python 3.11 is up to 10–60% faster than Python 3.10. On average, we measured a 1.25x speedup on the standard benchmark suite. See Faster CPython for details. — Python 3.11 Changelog.The speed of Python in the production system has always been compared and roast by novices., Beca ...

Posted by netcoord99 on Wed, 18 May 2022 09:01:12 +0300

Application case of machine learning logistic regression algorithm

Application case of machine learning logistic regression algorithm Time: September 12, 2020 source: https://www.kesci.com/home/project/5bfe39b3954d6e0010681cd1 Note: for beginners of logical regression, I followed the blog boss's article and left a record for later reading, which is also for everyone to learn.. 1. Data This data is Kaggle's ...

Posted by savj14 on Wed, 18 May 2022 07:40:03 +0300

pygame making aircraft war 3 - edge detection and bullet firing

1. Edge detection After the aircraft can move freely, it needs to do edge detection to avoid moving to the coordinates outside the pop-up window. The origin coordinate of pygame is in the upper left corner, and the size of my window is (450550), so it only needs to change the corresponding coordinates into the value corresponding to the edge w ...

Posted by thomasd1 on Wed, 18 May 2022 07:21:36 +0300

CTF Reverse-[Anxun Cup 2019]game-Use deflat to de-obfuscate conventional logic judgments

CTF Reverse-[Anxun Cup 2019]game-Use deflat to make conventional logical judgments after the main confusion is de-obfuscated Source: https://buuoj.cn/ Content: none Attachment: https://pan.baidu.com/s/1qq_64SNIRnnTTCNqNIKOiw?pwd=1iz9 Extraction code: 1iz9 Answer: KDEEIFGKIJ@AFGEJAEF@FDKADFGIJFA@FDE@JG@J general idea Determine the funct ...

Posted by Ludichrist on Wed, 18 May 2022 00:20:16 +0300

One click to realize automatic classification and management of files. It's really fragrant to make a visual GUI interface with Python

Often disorderly folders will make us unable to find the files we want, so I specially made a visual GUI interface to realize the filing of files by categories by one click through the input path. Like to remember collection, praise and attention. Different file suffixes are classified into different categories Let's first list some types of ...

Posted by turdferguson on Tue, 17 May 2022 23:20:41 +0300

Python+Selenium uses Page Object to automate page testing

Page Object mode is a test design mode in Selenium. It mainly designs each page as a Class, which contains the elements (buttons, input boxes, headers, etc.) that need to be tested in the page. In the Selenium test page, page elements can be obtained by calling page classes, which cleverly avoids changing the test page code when the page elemen ...

Posted by stef686 on Tue, 17 May 2022 19:14:09 +0300

python crawler framework: analyze ajax and crawl to find the plate

1, Web page analysis and crawling fields 1. Crawl field There are not many crawling fields, only three fields are needed, and the "content" field needs to be crawled in the details page 2. Web page analysis Starting URL https://www.zhihu.com/explore The discovery section is a typical ajax loading page. We open the web page, ...

Posted by ethridgt on Tue, 17 May 2022 17:45:20 +0300

[detailed explanation] anonymous function lambda in python

preface Lambda functions are frequently used in python. Let's learn lambda functions today. 1, lambda syntax The syntax of lambda function can only contain one statement. The format is as follows: lambda [arg1 [,arg2,...argn]]:expression lambda is the keyword reserved by python, arg1... argn is the parameter list, and expressi ...

Posted by csudhoff on Tue, 17 May 2022 02:50:19 +0300