How to capture a girl's heart with Python?
Editor in chief Liu Jing
The weather is cooling, but the feelings are heating up?
Just arriving at the company in the morning, I received the soul torture from xiaoq:
"Q boy! Or take a vacation this afternoon! I'll take you to the psychiatry department! " I can't stand it. I blurted out.
Voice did not fall, the front row of the ...
Posted by UVL on Thu, 02 Jan 2020 07:29:03 -0800
windows command line view file tree structure
tree command
Use the tree command on the command line of windows to print the file tree structure of the specified directory.
PS E:\work> tree /?
Graphically displays the folder structure of the drive or path.
TREE [drive:][path] [/F] [/A]
/F displays the name of the file in each folder.
/A uses ASCII characters ins ...
Posted by MilesStandish on Wed, 01 Jan 2020 13:19:29 -0800
[Python 3 crawler] Netease cloud Music List Download
1, Objectives:
Download popular songs of Netease cloud music
2, Modules used:
requests,multiprocessing,re.
3, Step:
(1) page analysis: first, open Netease cloud music, select the popular song list, you can see the following list of song lists, and then open the developer tool
Therefore, the url we need to request is https://music.1 ...
Posted by mindfield on Wed, 01 Jan 2020 08:20:21 -0800
Communication between two processes on Windows platform
Functional requirements: now there are two processes, one is process A, the other is process B. through the message mechanism of Windows, process A can send messages to B, and process B can also send messages to A.
Platform: first, we use the Win32 program to realize the corresponding functions, and use VS2017+C + + and Window ...
Posted by multe-media on Wed, 01 Jan 2020 02:54:36 -0800
Use case of TreeView control in WPF
WPF is more convenient in general. The main changes are Listview and treeview controls. Treeview seems to be a highly criticized control in WPF, which many people say is not easy to use. My demo is mainly to use the treeview control in WPF to realize the picture viewing function, such as simple Grid layout, treeview control to add icons, some e ...
Posted by SoberDude on Mon, 30 Dec 2019 11:06:39 -0800
File operation based on OS module in Python
1, Operation of OS module on files
1. Returns the operating system type (posix is the linux operating system, nt is the windows operating system)
important os
print os.name
2. Return operating system details
import os
print os.uname()
3. Environment variables of the system
import os
print os.environ
print os.environ.g ...
Posted by habanero25 on Sun, 29 Dec 2019 07:43:36 -0800
How do I change directories (CDS) in Python?
cd as in a shell command to change the working directory.
How do I change the current working directory in Python?
#1 building
This is an example of a context manager changing a working directory. It's more than anything else ActiveState version It's simple, but it can do the job.
Context manager: cd
import os
class cd:
""" ...
Posted by Darkness Soul on Sun, 29 Dec 2019 06:02:26 -0800
Nginx Service Optimization ---- (Hide Version + Cache + Modify Users and Groups + Log Split + Process Timeout)
[TOC]
Article Directory
1. Configure Nginx Hidden Version Number
1.1. Modify Profile Method
1.2. Modify Source Code Method
2. Modify Nginx Users and Groups
2.1. Modify the profile to specify users and groups
3. Configure Nginx Web Cache Time
IV. Configure Log Splitting
5. Connection timeout
The installation of nginx has been configured in adva ...
Posted by stringfield on Sat, 28 Dec 2019 10:06:19 -0800
LINQ learning note 4: LINQ to OBJECT operation file directory
This note is excerpted from: https://www.cnblogs.com/liqingwen/p/5816051.html Record the learning process for future reference.
Many file system operations are essentially queries, so LINQ is a good way to use them.
I. query files with specified attributes or names
This example shows how to find all files in the specified directory tree with th ...
Posted by Chotor on Fri, 27 Dec 2019 05:52:12 -0800
Base64 Chinese code scrambling solution
1. What is base64 encoding
Due to the limitations of some network communication protocols, you must use the window.btoa() method to encode the original data before sending. The receiver uses the method equivalent to window.atob() to decode the received base64 data and get the original data. For example, some data containing co ...
Posted by nigaki on Thu, 26 Dec 2019 14:40:32 -0800