CBrother scripting language 10 minutes to write a program to save the "Dogbuster Server"
In a new company, I took over a piece of c++ server code and leaked memory everywhere. This server has no database. Just restart it after hanging up. The company has been living for several years. Restart it regularly or every day. It may hang up ...
Posted by Daniel.Conaghan1 on Mon, 18 Nov 2019 17:46:06 -0800
I. serialization module
Serialization: converting data types from python or other languages to string types
json module: is a serialization module.
Is a "third party" special data format.
You can use the python data type -- json data format -- string -- File
To use python data in ...
Posted by richardbotw on Mon, 18 Nov 2019 01:47:32 -0800
Please implement a function to match regular expressions including '.' and '*'. The character '.' in the pattern indicates any character, while '*' indicates that the character before it can appear any number of times (including 0 times) In this problem, matching means that all characters of a string match th ...
Posted by PunjabHaker on Sun, 17 Nov 2019 13:54:48 -0800
Extract files after downloading
Due to the processing of Chinese files, precompiling is required
To work with the CJK language, do the following before running setup.py install:
python tools\conv_cmap.py -c B5=cp950 -c UniCNS-UTF8=utf-8 pdfminer\cmap Adobe- ...
Posted by smoked1 on Sun, 17 Nov 2019 12:57:28 -0800
Clustering is a problem that we often need to solve. Using Python - > kmeans to achieve clustering is very simple. The following is an example to show you how to simply cluster and show the clustering results. The data source of this paper is from Baidu Library: https://wenku.baidu.com/view/eb73005f9b6648d7c1c746db?from=searc ...
Posted by kid_drew on Sun, 17 Nov 2019 11:27:47 -0800
Application scenario: the configuration file has been changed due to the upgrade. We want to see what configuration items have been changed in the upgraded configuration file compared with the previous changesNote: the configuration file that this script can only detect is in the form of key value pair, that is, in the form of key=valueI've be ...
Posted by zenabi on Sun, 17 Nov 2019 08:43:05 -0800
Text box Entry is usually a single-line text box in the following format:Entry (parent object, options,...)
Common options parameters:
bg or background: Background color.
borderwidth or bd: The boundary width, which defaults to 2 pixels.
command: this function is automatically executed when the user changes the content.
cursor: The shape of th ...
Posted by webbnino on Sat, 16 Nov 2019 18:12:40 -0800
shutil.copyfileobj(fsrc, fdst[, length]) copies the contents of the file to another file, and the length is the size of each copy
guessage.py Chinese content
//Age guessing game:
//Users are allowed to guess three times at most. After three guesses, they will continue to play. If you enter Y, you can continue to guess three times. Otherw ...
Posted by sasi on Sat, 16 Nov 2019 13:11:27 -0800
My sample environment:
System version: CentOS 7.1
Database version: SQL Server2012
python version: Python 3.6.3
Connect to database tools: pyodbc, freetds
If you use Django to connect to the SQL Server database, please refer to the blog "Django 2.1 connect to use SQL Server(linux version)", which is different from that, ...
Posted by Omzy on Sat, 16 Nov 2019 07:43:30 -0800
String type is the sequence type of python. Its essence is character sequence. Besides, the string type of python can't be changed. You can't modify the original string, but you can copy part of the string into a new string to achieve the same modification effect.
To create a string type, you can use single quotation mark, double q ...
Posted by chaoswuz on Sat, 16 Nov 2019 04:54:29 -0800