Implement FTP program supporting multi-user online (C/S)

1. demand 1. User encryption authentication 2. Allow multiple users to log in 3. Each user has his own home directory and can only access his own home directory 4. Allocate disks to users, and each user can set their own free space 5. Allow users to switch directories at will on ftp server 6. Allow users to view files in their home direct ...

Posted on Wed, 06 Nov 2019 03:44:01 -0800 by scuba

python Foundation: basic data type three (dict), is and = =, encoding and decoding

1. dictionary 1.1 introduction to dictionary Dict is the only mapping data type in python. It consists of key value pairs enclosed by {}. In dict, the key is unique. When saving, a memory address is calculated according to the key, and then the key value is saved in the address. This algorithm is called hash algorithm. Therefore, remember that ...

Posted on Wed, 06 Nov 2019 02:55:25 -0800 by jakeone

Use lsof instruction in terminal to quickly view port information

Sometimes we need to know which port is being used by which process / application in the computer. At this time, we need a very convenient instruction: lsofThe command lsof means list open files. In unix system, everything is file, including tcp/udp connection.Example: lsof -n -P -i TCP | grep LISTENflag: -n refers to number instead of letter d ...

Posted on Fri, 01 Nov 2019 12:30:52 -0700 by riffy

Install pysharm and create pysharm shortcuts in Ubuntu 18.04

Install pysharm and create pysharm shortcuts in Ubuntu 18.04 I. install Pycharm in Ubuntu 18.04 1. Download pycharm professional 2018.2.4 from PyCharm website: https://www.jetbrains.com/pycharm/ Click the DOWNLOAD NOW button to enter the system version download page. Picture 1 Picture 2 Click professional to download 2. Unzip and install the do ...

Posted on Sat, 26 Oct 2019 09:14:37 -0700 by newbie_07

Built in decorator @ property

This paper introduces the concept of Python Decorators in the article "Decorators". There is a common decorator in daily code writing, which is the built-in @ property. Let's approach this concept step by step. An initial example is as follows: There is a file named leo01.py under the project LeosWorkGround as follows: # codin ...

Posted on Wed, 23 Oct 2019 01:46:15 -0700 by mattfoster

python paints piglet page

As a learner of python, let me have the idea of using Python to draw social people. Looking at this image, we can see that Page is composed of various curves, parabolas, circles and ellipses. The "class" mentioned here is the essence of Piggy Page's composition, a hand-painted style, rather t ...

Posted on Tue, 08 Oct 2019 08:02:54 -0700 by Ned

Lyrics and Frequency Statistics of Yiyun Songs on Python Crawler

We use word cloud to visualize Gloria Tang's top 50 songs. The contents of this visualization step are as follows: Understand the principles of reptiles Master the usage of xpath Master the use of word cloud tool wordcloud Understand the participle according to the use of jieba Recurrence of Regular Expressions First of all, we need to find t ...

Posted on Mon, 07 Oct 2019 15:46:03 -0700 by MattG

Logic Regression Fitting Two-Dimensional Data in Basic Papers of Deep Learning

From today on, I will record the footprints of in-depth learning. The purpose is very simple. I have nearly three weeks of correctly labeled validation codes. I want to train a usable model from scratch. Although I know there are many related models and demo s on the Internet, I still hope that I can personally develop a useful one. The main l ...

Posted on Sat, 05 Oct 2019 03:22:49 -0700 by dodginess

Python Road [Article 27]: web Server django

Django I. web Framework Framework, real-time framework, refers to the binding support structure designed to solve an open problem. Using framework can help you develop specific systems quickly. In short, it is to use the stage built by others to perform your talents. For all web applications, it is essentially a socket server, and the user's ...

Posted on Wed, 02 Oct 2019 02:23:20 -0700 by nmcglennon

Game Development of Pygame01

I. Pygame Library Pygame is a game library written using SDL library. The full name of SDL library is Simple Direct Media Layer, which is said to be written by Sam Lantinga. It was written by Daniel in order to make Loki transplant Windows games to linux better, and then it went bankrupt. SDL is written in C and Pygame is a common library in ...

Posted on Mon, 30 Sep 2019 16:51:48 -0700 by bluesoul