How to make a picture of 28000 pictures with python (concise and clear with source code)

    preface A picture is made up of numerous pixels, so we will fill these pixels with pictures Knowledge points: 1. cv2 2. numpy 3. tqdm 4. argparse Development environment: Python 3.6 Pycharm Ideas: 1. Input 2. Calculation and processing 3. Output 4. Display Add Penguin Group 695185429 and you can get it for free. All the information is in ...

Added by stewartship on Fri, 22 May 2020 18:17:27 +0300

python serial communication applet (GUI interface)

Serial communication using Python requires the pyserial Library of python, which is not automatically installed when Python is installed and needs to be installed by itself. 1. Install pyserial library: Open the command line window and type: pip install pyserial command on the command line to install. 2. The program uses tkinter, a GUI lib ...

Added by lookee on Tue, 12 May 2020 05:24:47 +0300

WeChat official account data grab

1. grab all the files of a official account. Charles + wechat for computer + pycharm+python   2. Analysis After analysis: every official account list page is connected. At the beginning of https://mp.weixin.qq.com/mp/profile_ext, only a few references to each official account are taken at the time of grasping. Grab:   3. Code impo ...

Added by MNSarahG on Thu, 07 May 2020 18:56:45 +0300

Failed to resolve pycharm add third party package

Today, I want to open the image with pycharm, but an error is reported when I import scipy. The error content is as follows: from scipy.misc import imread Traceback (most recent call last): File "<input>", line 1, in <module> File "D:\pycharm\PyCharm Community Edition 2017.2.3\helpers\pydev\_pydev_bundle\pydev_import_hook ...

Added by adityakonda on Sat, 25 Apr 2020 18:39:46 +0300

Python 3.x install HTMLTestRunner and use

Author: Wind complains about Jiangnan origin: https://www.cnblogs.com/mengjinxiang The author is original, the article is welcome to reprint, if you like, please comment + attention, thank you for your support!   Foreword: Recently I have been writing Python related technical blogs on other blog Forums - > https://blog.csdn.net/JackMengJin P ...

Added by DarkArchon on Tue, 07 Apr 2020 20:10:34 +0300

Python learning dictionary exercise: simple address book

Functional requirements: Query the contact person, input the name, you can query the contact information in the current address book, if the contact person exists, output the contact information, if not, inform Insert a contact, and you can create a new contact in the address book. If the contact already exists, ask if you want to modify the c ...

Added by pugs1501 on Sun, 05 Apr 2020 00:53:11 +0300

Python learning - using Python to crawl popular comments on Eason Chan's new song "we"

It has been several days since "later we" was released. I haven't been to see it. There was a ticket refund incident a few days ago. The theme song of the movie was sung by Eason Chan. I specially looked for the MV of the theme song "we" and watched it. It's still that feeling. That day, I saw an official account of the Pyth ...

Added by harinath on Thu, 26 Mar 2020 20:07:24 +0200

Python crawler notes -- crawling for the new fun Pavilion

Preliminary preparation: (1) Install requests (get HTML information for the entire web page) In cmd, use the following command to install requests: pip install requests (2) Install beautiful soup4 (parse HTML information and extract what we need) In cmd, use the following command to install requests: p ...

Added by manichean on Tue, 03 Mar 2020 09:51:48 +0200

Collation of python basic data types

1, Data type (1) , tips 1. PyCharm: select multiple lines and press Ctrl + / "to comment them out in batch (2) , string 1,startswith(str,[,start][,end]) #Determine whether the string starts with str s = 'lichuanlei' print(s.startswith('le',7,9)) Instance output result: True 2,replace(str_old,str_new[,num]) #Replace string s = 'lichuanlei' ...

Added by danger2oo6 on Tue, 18 Feb 2020 07:00:52 +0200

Use of 56 crawler ip agent

IP proxy can be used to prevent IP from being blocked by server due to frequent access. Using the method, add a proxies parameter to the functions of requests: page_text = requests.get(url=url, headers=headers, proxies={'http': '60.167.132.19:9999'} ) The free IP proxy that can be used can be obta ...

Added by ereptur on Sat, 08 Feb 2020 16:40:07 +0200