The use of django three cache modes and notes

... Django Cache mode use (mainly for the RestFul design mode project) There are three modes: 全站用Cache mode (each project The interface will use the cache, the disadvantage: so the interface can not get data in real time) separate view cache mode (single interface uses the cache) local view...


XLSX is converted to CSV format

... I use excel to convert csv is always formatted incorrectly, some spaces are changed, and the carriage return is garbled. So after checking the information, there is the following script The installation module of the relevant module is not installed. import xlrd import csv import codecs...


About the BeautifulSoup library look

... can not remember how to use 留存 </style> <script type="text/javascript" src="../ext/linesale.js?v=0.11817100 1538190458" ></script> </head> How to grab the data inside src=“...”? 前序Format import requests from bs4 import BeautifulSoup import re url="http://www...


Python output ninety-nine multiplication table

... python has been put on hold for a while and has not been reviewed. Today, I have regained my mind and found that many grammars and logics have been forgotten. Especially when I saw the nine-ninth multiplication table in the book, I didn’t see it at first glance. Understand, for a few...


Python recursively finds the maximum value of the list (including the sublists in the list)

... Python recursively finds the maximum value in the list (including the sublists in the list) 要求 : Find the list The maximum number of all values, including those with sublists in the list. According to the built-in function (max) given by Python, only the maximum value in the list can be...


Non-root users have different versions of python

... installed on the server. This problem has occurred many times and has not been taken seriously, resulting in reconfiguration every time I use a new server. Now record this process, so that you can find it later, and hope to help others. Because of the permissions issue, when using the...


WeChat real-time reminder python program status

... 背景 1. When using python for feature extraction or building a model, the amount of data will be a lot of time, and it will take a while to see if the code is running. Very inconvenient. 2. Recently, after testing the third-party WeChat library itchat of Python and analyzing some data of...


Interactive shell fun The Python

... Python programming language has become one of the most popular languages ​​used in IT. One reason for success is that it can be used to solve a variety of problems. From web development to data science, machine learning to task automation, the Python ecosystem has a rich framework and...


Lightweight timed task scheduling library in Python: When schedule

... mentions scheduled task scheduling, I believe many people will think of celery celery, or write a script to crontab. However, a small timing script that uses celery is too "heavy". So, I found a library of lightweight scheduled task scheduling: schedule. The installation of 库 is still...


11-year-old girl ant Jinfu CEO is directly invited! Your child should learn to program! Ali's smallest program Yuan

... 9月19, on the last day of the just-concluded Yunqi Conference (formerly Alibaba Cloud Developers Conference), a little cowman was shocked to appear. She is only 11-year-old primary school student Wan Haijun. At the age of 11 years old, there is a life like opening. Not only can I...