Tag:python
-
Python multithreading task instance
catalogue One for a good meal every dayExcelAfter we import the summarized dining data into the database, the administrative office service compares it with the dining data in the company. The initial implementation is single threaded, andimport_recordsThe part after removing multithreading is almost the same. Read Excel data – > send to administrative service interface […]
-
An example of Python creating a dictionary with functions
1. Use the dict () function to establish a dictionary through other mappings (such as other dictionaries) or sequences of key value pairs. Dict1 = dict (a =’a ‘, B =’b’, t =’t ‘) # incoming keyword print(dict1) Dict2 = dict (ZIP ([‘one ‘,’ two ‘,’ three ‘], [1, 2, 3])) # mapping function to […]
-
Python Taobao crawler small example
Brothers, have you cut your hands on double eleven? Although shopping is happy, don’t overdo it. After all, many price cuts are not real price cuts. Your eyes are shining~ Today, let’s try to climb a treasure. If you learn to outsource, it’s still worth a few dollars. Environment / module introduction Environment used by […]
-
CatBoost_ Learning records
reference resources: CatBoost – open-source gradient boosting library The most detailed catboost parameter explanation and example application_ The same name of the whole network: Xiaobai’s blog in the code world – blog_ Catboost parameter use Routines for classification problems: catboost/classification_tutorial.ipynb at master · catboost/catboost (github.com) input Pool is a form used to organize data in […]
-
Python basic learning day 8
Article catalogue Python private properties, single inheritance, and method rewriting 1. Private attributes and methods 2. Pseudo private attributes and private methods 3. Succession 3.1 concept of inheritance 3.2 syntax of inheritance 3.3 transmissibility of inheritance 3.4 multi inheritance 4. Polymorphism 5. Class attribute Structure of class 5.1 5.2 class attribute and instance attribute 5.3 […]
-
[Python tutorial] nanny version teaches how to use pymysql module to connect mysql to realize addition, deletion, modification and query
Article catalogue preface Previous knowledge points Implementation steps (1) Installation of Library (2) MySQL create database (3) Pycharm connects to MySQL and creates tables (4) Pycharm connects Mysql to add, delete, modify and query epilogue preface MySQL is one of the most popular databases and the most popular open source relational database in the world. […]
-
[laravel series 3.4] Application of Middleware in routing and controller
Application of Middleware in routing and controller What is middleware? In the era of traditional frameworks, there are few middleware concepts. I first came into contact with this concept when I was learning mysql. I learned that components such as MYCAT are also called middleware. Since it is in the middle, it is a thing […]
-
[design reference] the noise detection system built by esp32 + Haas Python keeps away from noise and enjoys tranquility
Noise detection system In addition to the function description in the following figure, please refer to step 3 in this case. After the hardware connection is completed, we suggest you use the “one minute cloud experience” function to experience the actual operation effect of this case in advance. brief introduction In today’s society, noise pollution […]
-
Use Python + flask to develop blog projects and achieve intranet penetration
preface Flask is a lightweight web framework written in Python. Compared with other frameworks of the same type, this framework is more flexible and lightweight. And it has strong customization, users can add functions according to their own needs, and has a powerful plug-in library, which is why this framework has been hot in the […]
-
Python appears (Unicode error) ‘Unicode escape’ codec can’t decode bytes in position 2-3: solution to the error
The reason for this error is that the program regards “\” as an escape character, so it cannot read the path file correctly. There are two solutions: 1 “\” becomes “\ \” 2. “\” changed to “/”
-
Python string exercise 1 [week 2]
Article catalogue Python string exercise 1 1、 String interception 2、 Determine palindrome string 3、 String reverse order 4、 Triangle area 5、 Circumference and area of a circle 6、 Save electricity 7、 Temperature conversion Python string exercise 1 1、 String interception The Great Wall (“print”) 2、 Determine palindrome string s = input() rs = list(reversed(s)) print(s) […]