Python - [function decorator | closure] - Notes on reading (chao)

This article is from Chapter 7 of fluent Python (First Edition): function decorators and closures. Since I was just learning Python, taking notes can be said to be a complete transcription, and I'm becoming more and more apathetic at the back, so I don't want to copy (taking notes) anymore. From page p1 ...

Posted by webwiese on Thu, 25 Jun 2020 10:36:45 +0200

Self study python for one year, and finally transform into a java Engineer!

The language is the same, no matter c, python or java, the syntax feels similar, but Python is really hard to find a job. Several recruitment platforms have looked around, and there are only a few, so they sprouted the extension java route to make up for the advantages of job search. In the future, you ...

Posted by popsiclesph on Sun, 21 Jun 2020 10:24:05 +0200

In 315 cities across the country, use python to crawl the store information of KFC grandpa

    I think I have lived in this world for more than 20 years. The most popular restaurant I have ever been to is KFC's birthday when I was a child. Now I grow up, KFC has become my daily snack. When I go hungry from the front door after work, I will go in and buy a cup of coffee in the morning. It's mainly fast, delicious and full, and it's ...

Posted by integravtec on Wed, 29 Apr 2020 14:40:14 +0200

[interesting case] make a screen recording tool with Python

1, Write in front As a test, sometimes it is often necessary to record their own operation on the screen, so as to facilitate the follow-up development and positioning of students. In the past, screen to GIF was used to record the screen and make dynamic pictures. Occasionally, python can also be realized. Then hurry to learn. 2, Effect display ...

Posted by Zup on Mon, 27 Apr 2020 10:21:50 +0200

Methods of python processing files and files (shutil, filecmp, MD5, tarfile, zip)

1, Advanced file processing interface shutil Is a high-level file operation toolIt is similar to advanced API, and its main strength lies in its better support for copying and deleting files. usage method Copyfile (src, dst) is copied from source src to dst. Of course, the premise is that the target address has writable permission. The exce ...

Posted by Dorin85 on Mon, 27 Apr 2020 08:14:45 +0200

Crawling cache agent free ip, build its own agent ip pool, no longer afraid of anti crawling (with code)

In the process of doing crawler, we often encounter the following situations: at first, the crawler runs normally and grabs data normally, but the effort of a cup of tea may make mistakes, such as 403 Forbidden; at this time, the web page may appear the prompt of "your IP access frequency is too high", which may be unsealed after a l ...

Posted by phpfreak on Sat, 25 Apr 2020 09:53:12 +0200

Python - Cryptographic programming

1. Introduction Information encryption and information hiding are the main means to achieve information security and confidentiality.A large number of encryption algorithms and methods for hiding information have been invented since ancient times.For example, if you wrap a screw of paper around a stick and write on it, spread it out and pass it ...

Posted by thefamouseric on Thu, 16 Apr 2020 03:45:00 +0200

Summary of python list method

Summary of python list method List.append() method purpose The append() method is used to add a new object at the end of the list.grammar list.append(obj) parameter obj: the object added to the end of the list. Return value There is no return value for this method, but the original list will be ...

Posted by PartyMarty on Thu, 05 Mar 2020 14:39:18 +0100

Fundamentals of Computer Visual Digital Image Processing

Image Processing Basis 1. Software Installation In the computer vision course, image processing is done in the python environment, so you need to select the software that can edit the python statement. The visual interface of PyCharm is selected here. In addition, there are editors such as VScode,Su ...

Posted by wildcolour on Sun, 23 Feb 2020 04:13:37 +0100

YOLOv3 target detection uses its own data set detailed process.

The specific concept and process of YOLOv3 will not be introduced here, but the implementation steps will be explained directly below. Computer environment: win10 + Python 3.6 + tensorflow GPU 1.12.0 + keras GPU 2.2.4 + cuda9.0IDE: PyCharm + Anaconda Catalog I. production of data set 1.1 LabelImg ta ...

Posted by drorshem on Wed, 05 Feb 2020 14:34:08 +0100