python automatically replies to qq messages

Recently, we need to realize a QQ automatic message reply function. Baidu has checked the relevant blog reference: https://blog.csdn.net/qq_45404396/article/details/112750110 Article catalog python automation: automatic reply to QQ messages 1. Relevant software and python modules to be installed 2. Connect the mobile phone 3. Test whether the ...

Posted by outatime88 on Sun, 16 Jan 2022 13:45:57 +0100

Request mode 2 - requests module

requests is a simple request library compared with urllib. The steps to complete the request are simple and can speed up the development efficiency Installation module ​ pip install requests GET request Use * * get() sends a get request. Similarly, there are post()**,. put(),. delete(),. head(),. options() these request types import re ...

Posted by jerryroy on Sun, 16 Jan 2022 12:55:06 +0100

Use of pytest framework fixture

catalogue fixture advantages Scope of fixture fixture source code details scope range of four parameters scope="function"  scope="class"  scope="module" scope="session" conftest.py 1. Disposition 2. Scope of action Three methods of calling fixture 1. The method in the function or class directly passes the name of the function param ...

Posted by BDKR on Sun, 16 Jan 2022 12:21:04 +0100

pygame implementation of ball dropping Game 1

Game content: a ball falls on the screen and moves through the mouse. If the underground wood block is connected, points will be added, otherwise one life will be subtracted, and the game will end when three lives are used up. Lead bag Introduce the corresponding package and write a printed text as before import sys, random, pygame from pyg ...

Posted by nhan on Sun, 16 Jan 2022 08:41:24 +0100

day5 beginner list

list Basic characteristics of container: a container type data can store multiple other data at the same time What is a list 1) What does a list look like: a list is a container data type (sequence); Take [] as the flag of the container, in which multiple elements are separated by commas: [element 1, element 2, element 3...] 2) Characterist ...

Posted by jcbones on Sun, 16 Jan 2022 08:22:44 +0100

Share a simple and easy-to-use python parallel module [PP module]

At present, most personal computers are multicore, but when you run a python program, you will find that there is actually only one core (CPU) running the code, and the other cores are lazy, as shown below. The purpose of parallel computing is to run all cores to speed up code execution. In python, due to the existence of global interpreter loc ...

Posted by Stille on Sun, 16 Jan 2022 07:44:17 +0100

A Tencent WXG interview question

Problem: two billboards and five advertisers design an algorithm. The number of advertisements of five advertisers in a period of time is 1:2:3:4:5. Note that two billboards cannot broadcast the same advertisement at the same time. Considering that there is only one billboard, you only need to select the corresponding advertisement according t ...

Posted by saad|_d3vil on Sun, 16 Jan 2022 07:44:33 +0100

A comprehensive example after learning PyQt

catalogue preface 1, Purpose and function 2, Steps         1. Use QT designer to build graphics 2.ui file to py file 3. Add fuel to the py file generated by pyuic 4. Create the main file and constructor  III Problems and experience encountered  IV Result display preface From the beginning of learning programming, I always wa ...

Posted by master82 on Sun, 16 Jan 2022 07:33:02 +0100

[LeetCode] determine a binary tree

preface This paper shows the topics related to determining a binary tree in LeetCode, which readers can use to write by dictation to check whether they are familiar with the relevant algorithms. The difficulty is medium. LeetCode topic Related topic types Related links 105 Constructing binary tree from preorder and inorder traversal sequ ...

Posted by mazman on Sun, 16 Jan 2022 05:50:18 +0100

Easy to learn Python data analysis 2-Excel reading and generation

It takes about 5 minutes to read this article Main contents: Excel office automation and data analysis Applicable population: office staff / Python beginners / personnel interested in data analysis Preparation content: Anaconda Spyder, Pandas Library If you will not install the library, you can refer to the following tutorials: How An ...

Posted by nati on Sun, 16 Jan 2022 00:56:20 +0100