1 system performance information module psutil
1.1 system performance information module psutil
psutil is a cross platform library, which can easily obtain the process and system utilization information of the system. It is mainly used for system monitoring, analyzing and limiting system resources and process management. It realizes the functions provided by the same command-line tools.
& ...
Posted by AshrakTheWhite on Tue, 09 Nov 2021 16:22:27 -0800
Palindromes 2021-11-08
Determine whether an integer is palindrome
Title Description: Source: LeetCode 09 palindromes Give you an integer x, if x is a palindrome integer, return true; Otherwise, return false.
Palindrome numbers refer to integers whose positive order (left-to-right) and reverse order (right-to-left) are read the same. For example, 121 is palindrome a ...
Posted by Kol on Tue, 09 Nov 2021 09:09:23 -0800
Zero basic python nanny tutorial -- if statement
In the last article, we talked about flashbacks, and then we talked about tuples, about lists and characters. Variables can be viewed by clicking my home page. Remember to click follow.
if statement
if keyword or condition judgment:
Condition (i.e. expression):
Conditions can also be output statements
name = 'Qing'an'
if name == 'Qing'an': ...
Posted by webv on Mon, 08 Nov 2021 20:28:33 -0800
Task2 Python basic exercise: data structure summary
Task 2 Python basics review: data structure summary
List list
1. Create a list by derivation
x = [i for i in range(100) if (i % 2) != 0 and (i % 3) == 0]
#[3, 9, 15, 21, 27, 33, 39, 45, 51
#, 57, 63, 69, 75, 81, 87, 93, 99] <class 'list'>
2. Since the element of the list can be any object, what is saved in the list is the pointer of ...
Posted by tyler on Mon, 08 Nov 2021 16:26:26 -0800
Help Find People and Objects Mutual Assistance Applet
Seventh Week Meeting Minutes
Preface1. Photos of division of work among members and regular meetings2. Everyone's code and documentation
1. User login, rights management2. Publish, comment, search
summary
Preface
This week we held our second discussion, in which we focused on the overall task and individual division of ...
Posted by bobob on Mon, 08 Nov 2021 15:14:46 -0800
In depth analysis of concurrent.futures
Simulate a story, randomly find a few beautiful pictures from Baidu pictures, download them, save them locally, and download them in order first
1 sequential synchronous Download
import random
import time
import requests
urls = [
"https://t7.baidu.com/it/u=3676218341,3686214618&fm=193&f=GIF",
"https://t7.baidu.com/it/u=3 ...
Posted by esfisher on Mon, 08 Nov 2021 10:08:04 -0800
python template rendering jinja2 - python Web
python template rendering jinja2 - python web (3)
Jinja2 is a fast, expressive and extensible template engine. It was written by werkzueg author Armin ronacher (people used to call him mitsuhiko )Development, used for data rendering of python web html pages, flush with jsp of java servlet. Jinja2 makes it possible ...
Posted by Dark Phoenix on Mon, 08 Nov 2021 09:50:34 -0800
[algorithm] sword finger Offer II 054. Sum of all values greater than or equal to nodes | 538 | 1038 (Multilingual Implementation)
Thank you very much for reading this article~ Welcome[ 👍 [like][ ⭐ Collection][ 📝 [comments]~ It's not hard to give up, but it must be cool to insist~ I hope all of us can make a little progress every day~ This paper consists of White hat of the second leader: https://le-yi.blog.csdn.net/ Blog originality~
Sword finger Offer II 05 ...
Posted by dthomas31uk on Sun, 07 Nov 2021 20:59:32 -0800
Scarpy source code analysis 5
2021SC@SDUSC
3.3 ExecutionEngine
look down open_spider
# scrapy/core/engine.py
class ExecutionEngine(object):
# ...
@defer.inlineCallbacks
def open_spider(self, spider, start_requests=(), close_if_idle=True):
assert self.has_capacity(), "No free spider slot when opening %r" % \
spider.name
log ...
Posted by anthonyfellows on Sun, 07 Nov 2021 20:55:48 -0800
[Python image recognition] 48. Pytoch constructs fast RCNN model to realize wheat target detection
This series of articles is to explain Python OpenCV image processing knowledge. In the early stage, it mainly explains the introduction of image and the basic usage of OpenCV. In the middle stage, it explains various algorithms of image processing, including image sharpening operator, image enhancement technology, image segmentation, etc. in th ...
Posted by Wales on Sun, 07 Nov 2021 19:28:24 -0800