1, Meaning of ls-l paragraphs
wang@wang:~/workpalce/threading$ ls -l
//Total dosage 16
drwxrwxr-x 2 wang wang 4096 12 month 19 17:17 a
-rw-rw-r-- 1 wang wang 636 12 month 19 10:59 test.py
-rw-rw-r-- 1 wang wang 596 12 month 5 12:10 th.py
-rw-rw-r-- 1 wang wang 590 12 month 19 10:58 thtest.py
The first field has a total of 10 '-', the firs ...
Posted on Sat, 02 May 2020 00:52:43 -0700 by Meissa
Application: folder Copyer (multi process version)
def copy_file(queue, file_name,source_folder_name, dest_folder_name):
"""copy File to specified path"""
f_read = open(source_folder_name + "/" + file_name, "rb")
f_write = open(dest_folder_name + "/" + file_name, "wb")
Posted on Fri, 01 May 2020 22:50:25 -0700 by Brian W
Today we're going to use recursion, Fibonacci sequence, and print file hierarchy
, Hanoi Tower Games.
Recursion is a kind of method of function calling itself. No one says that it's a dead cycle to call itself. We need to set our own end conditions. I personally think that recursion thinking you only need to clarify the beginning and end co ...
Posted on Fri, 01 May 2020 22:49:39 -0700 by Liquix
Docker officially provides two different SDKs and HTTP API s: Go and python. I'm not familiar with the Go language. I tried the python SDK. Docker's official Python SDK is for version 2.x, which is tested directly on Python 2.7.5 of CentOS, but there are errors:
Python 2.7.5 (default, Aug 4 2017, 00:39:18)
[GCC 4.8.5 20150623 (Re ...
Posted on Fri, 01 May 2020 15:27:32 -0700 by fdost
Multiline comments and multiline programs
When three quotation marks' msg 'are used to assign values to variables, they are multiline programs. If they are not assigned, they are multiline comments.
Single and double quotation marks can be used to assign values to variables, but there may be single quotation marks or double quotation marks ins ...
Posted on Thu, 30 Apr 2020 17:16:15 -0700 by culprit
1, Let's start with self executing functions
1. What is the immediate execution function? That is, anonymous functions
The immediate execution function is
Declare an anonymous function
Call this anonymous function now
2. An example of pop
Click to open a new window. After saving, the page will return without refreshing the data. (click the + ...
Posted on Thu, 30 Apr 2020 15:47:05 -0700 by cybersurfur
Nginx installation: sudo apt get install nginx
After nginx is installed, you can use your browser to enter 127.0.0.1 to see the welcome page of nginx
nginx common commands
1. Sudo service nginx start
2. Sudo service nginx stop
3. Sudo service nginx restart
4. Sudo service nginx reload reloads the con ...
Posted on Thu, 30 Apr 2020 14:34:20 -0700 by Soumen
1. Create a blank django project using vs2017
2. Right click env of python environment - install python package and upgrade django to 2.0.1 and setuptools to 38.4.0. The specific environment is as follows:
3. Configure the routing configuration file urls.py, uncomment admin, and modify it as follows. The configuration of Django 2.0 is dif ...
Posted on Thu, 30 Apr 2020 06:30:00 -0700 by ryansmith44
AI is a hot word now. BAT three companies are also on the way of AI open source. At present, baidu is a little ahead in AI.
Today, we use the functions provided by Baidu AI open platform to realize the function of face detection.
Interface documentation: http://ai.baidu.com/docs#/Face-Python-SDK/top
Before you start, you need to apply for an a ...
Posted on Thu, 30 Apr 2020 06:26:49 -0700 by matt1019
Let's take a look at the final effect
Start chatting, input message and click send message to start chatting
Click "get back-end data" to start real-time push
Let's take a brief look at Django Channel
Channels is a project that uses Django and extends its functions beyond HTTP to handle WebSocket, chat protocol, IoT protoc ...
Posted on Wed, 29 Apr 2020 17:44:34 -0700 by cdog5000