Scripting

17 commonly used regular expression rules (covering most of the general needs)

Published by Lao Jiang at 08:14:29 on October 2, 2023-10

For non professional programmers, regular expressions are relatively difficult. But in actual use, we can directly apply the existing cases. Here are 17 commonly used regular expression rules, which need to be copied directly. 1. Match Chinese characters [ u4e00 -- u9fa5] 2. Match double byte characters [^ x00 -- xff] 3. Match blank lines n s *

Solve the problem that Python pip fails to install requests and the bs4 library

two

Published by Lao Jiang at 09:35:42 on October 1, 2023-10

As Jiang mentioned earlier, if there is a lack of third-party libraries when editing Python programs, you can use the PyCharm editor to install them directly. However, due to network problems, it is estimated that the library package file cannot be called. Then we can use the pip command tool to install. 1、 The pip basic installation pip install requests directly uses pip to install the required libraries, such as

How does PyCharm install libraries? Graphic and text recording the process of PyCharm installing third-party libraries

three

Published by Lao Jiang at 09:27:56 on October 1, 2023-10

By default, when we write Python programs locally, some third-party libraries are not installed by default. Here, we need to install the required library locally. Of course, we can install it through pip or directly using PyCharm IED editor. Here we open it in File Setting of PyCharm editor. Then find the Python of our project

Use the rename command to rename the file and directory method records

one

Published by Lao Jiang at 07:01:23, March 1, 2023

Do we need to modify the file and directory names during the operation and maintenance of the Linux server? Some friends may have used the mv command. But it should be better to use rename at this time. Here we will see how to use the rename command to rename files and directories. 1. Install rename sudo apt update sudo apt install

Arrange the font size comparison table of latex

Published by Lao Jiang on 2023-02-28 08:43:59

The font size in LaTeX generally needs pt as the unit, which is different from the familiar format of four point and five point characters. The relationship between them is listed below. In printing and publishing, the Chinese font size system is compared with the point system. 1、 List value corresponding to LaTeX font command 2. Command references for different fonts: https://blog.51cto.com/u_1545...

Python uses XML-RPC to publish ZBLOG PHP articles offline

one

Published by Lao Jiang on November 21, 2022-108:36:38

ZBLOG PHP is also our favorite open source blog program. Compared with WP, it is lighter and more complex. The only thing that is slightly unsatisfactory is that the theme and common are not open enough. Here, I also need to use Python to publish articles. Here, I can use ZBLOG's XML-RPC to publish offline. We need to open the agreement first. Then use Python

Record Python installation of wordpress_xmlrpc library to realize offline publishing of articles

Published by Lao Jiang on 2022-11-18 08:11:17

These days, Lao Jiang has been studying Python crawler push articles to WordPress CMS. Here we generally use the xmlrpc.php protocol to push articles. Here, we need to install them to the wordpress_xmlrpc library. This is a simple way to sort out common online libraries and scripts for future study. 1. Install the library pip install python_wo

PyCharm editor installation requests library method

four

Published by Lao Jiang on 2022-11-18 08:11:13

At present, The PyCharm editor is a good tool for running Python locally. However, after installing the PyCharm editor, those without the installation of libraries cannot run. For example, we need to install the necessary requests library. Here we will see how to install it. This is also true for other libraries. Here, we open PyCharm and find [File], [Se