python day 14: Job: develop an FTP script that can upload files by multiple users

Catalog python day 14 1. requirements 2. Self written program directory 3. models module 4. settings module 5. tcp_server module 6. client module 7. postscript python day 14 2019/10/19 1. requirements FTP: 1. Separate function implementation (progress bar ...

Posted on Mon, 21 Oct 2019 16:34:10 -0400 by porco

Django's Daily-1

Catalog Django's Daily-1 The three most commonly used things in Django HTTPresponse render redirect Static file related get and post of form form Magical request Template value transfer method Django connecting database and its powerful ORM Preliminary pr ...

Posted on Mon, 21 Oct 2019 09:50:48 -0400 by kiwibrit

Log4j combined with nails to build log robot

In normal development, when looking for problems, reading logs is often an indispensable event. For the error log, we hope to know it immediately, trace the source of the error quickly, and then correct the error. The appearance of the nail robot undoubtedly provides us with a wonderful tool to respond to the error log in the first time. Custom ...

Posted on Sun, 20 Oct 2019 18:08:09 -0400 by LDM2009

Three common uses and source code implementation of IOC in Spring source code analysis

1. Configuration and acquisition api of IOC core function bean s There are four types (from P175 proficient in spring4.x) The first three are commonly used The first way <?xml version="1.0" encoding="GBK"?> <beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/beans" xs ...

Posted on Sun, 20 Oct 2019 13:26:17 -0400 by clodagh2000

An article to configure Neovim

If you don't speak much, first picture above This is our vim configuration. Because of my technical comparison, if it's a big God, please give me more advice. If it's a small white, I'll take you to my level of neovim. 1. First, we complete the configuration Foundation I'm a manjaro user. We can I ...

Posted on Sun, 20 Oct 2019 13:01:51 -0400 by psytae

[reptile] xpath can't locate tbody tag

Test library: lxml library; link link: http://www.sxchxx.com/index-13-1075-1.html Problem finding I prefer to use xpath to parse the web page, but I often get an empty list. 1.1 etree.HTML from lxml import etree import requests url = 'http://www.sxchxx.com/index-13-1075-1.html' headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win6 ...

Posted on Sun, 20 Oct 2019 10:06:14 -0400 by dizzy1

Python object-oriented -- human computer guessing boxing game

Object oriented human-machine boxing guessing game The implementation steps are as follows: 1.1 design player class, computer class, game class 1.2 player class defines an attribute name and method for boxing, 1: Stone 2: scissors 3: cloth 1.3 computer class is basically the same as player class, but ...

Posted on Sat, 19 Oct 2019 17:58:10 -0400 by valleydr

c language version uses the driver mysql connector to operate mysql database

#include <stdio.h> #include <string.h> #include <stdlib.h> #pragma comment(lib, "ws2_32.lib") #pragma comment(lib, "libmysql.lib") #include <winsock.h> #include "mysql.h" int main(int argc, char** argv) { WSADATA wsa; WSAStartup(MAKEWORD(2, 2), &wsa); // Create a da ...

Posted on Sat, 19 Oct 2019 12:47:59 -0400 by just_nobody

Development of "GIS DICTIONARY A-Z" query page -- bs4 and dictionary data processing

The first day's work: find data source, data download, data processing. Data source:“ http://webhelp.esri.com/arcgisserver/9.3/java/geodatabases/definition_frame.htm". Data download: right click the page to save as. Data processing: bs4 + comparative observation + chrome check element + write function I. bs4 from bs4 import Beauti ...

Posted on Sat, 19 Oct 2019 10:12:13 -0400 by KirstyScott

Built in function supplement, anonymous function and closure

Built in function, anonymous function and closure Anonymous function def func(x,y): return (x,y) print(func(1,2)) # Result: (1,2) f = lambda x,y:(x,y) # lambda keyword print(f(1,2)) # Result: (1,2) print((lambda x,y:(x,y))(1,2)) # Result: (1,2) # The definition and call of anonymous function with one line of code print(lam ...

Posted on Fri, 18 Oct 2019 12:46:08 -0400 by Cheeky Chino