[Django] install Django and start external access

Before the text Today, the undergraduate counselor came to me and asked if I would build a website.. I'm more empty, but I think I've done it somehow.. So I took the conversation with half a push... Oh. Now I'm worried about whether the teacher who built my website will pit me.. text Although I am only required to make a s ...

Posted on Sat, 28 Dec 2019 12:44:33 -0500 by Vacman

python connects to SQL Server database, creates data table and adds corresponding Chinese annotation information to each field

Today, in response to the demand change of the product side, I need to add the annotation item in the original script of creating data table. I am not familiar with SQL Server database, but I have been exposed to this part of content for the sake of the project. I think it's very good to learn. The previous scripts for creating ...

Posted on Sat, 28 Dec 2019 11:31:12 -0500 by yoma31

What is a clean Python method with multiple constructors in Python?

I can't find the exact answer. As far as I know, there cannot be more than one init function in a Python class. So how can I solve this problem? Suppose I have a class called Cheese with the number of holes attribute. How can I create Cheese objects in two ways A person with many such holes: parmesan = Cheese(num_holes = 15) There i ...

Posted on Sat, 28 Dec 2019 07:01:00 -0500 by thefollower

Review and summary of Liao Xuefeng's python3 -- day9-3

Python's OS module encapsulates the directory and file operations of the operating system. Note that some of these functions are in the OS module and some are in the os.path module. Serialization: the process of changing a variable from memory to be storable or transportable is called serialization, which is called pickling in ...

Posted on Fri, 27 Dec 2019 11:08:23 -0500 by dreamer

LeetCode227 Basic Calculator II

Title Description Basic Calculator II Given some combinations of nonnegative integers and symbols +, -, *, /, there may be spaces in between. Note that the truncation of integer division should be in the direction of 0, for example, 3.5 is 3, - 3.5 is - 3Sample input and output: Input: "3+2*2" Output: 7 Input: " 3/2 " Output: ...

Posted on Fri, 27 Dec 2019 10:37:48 -0500 by peter.t

XPath (crawling Path position information) of parsing web page of python web crawler [3]

Catalog Preface How to use XPath XPath crawling data an account of happenings after the event being told @ (directory) Preface This chapter is also about parsing web pages, but the parsing technology used is XPath. Compared with the previous beautiful soup, I think it's OK. It's also a co ...

Posted on Fri, 27 Dec 2019 09:30:43 -0500 by zeropaid

python crawls the course information

Catalog 1. Large module page 2. Simple information of small and medium modules in each large module 3. Details of each course 4. Crawl all comments @                        &ems ...

Posted on Fri, 27 Dec 2019 09:23:59 -0500 by n9ne

Crawler: scratch framework, scratch, first case

1. Scrapy framework Scrapy has powerful functions, high crawling efficiency, many related extension components, high configurability and scalability. It can deal with almost all anti crawling websites, and is the most widely used crawler framework in Python at present. 1.1 introduction to scrapy 1.1.1 architecture introduction Scrapy is an asyn ...

Posted on Fri, 27 Dec 2019 09:08:22 -0500 by makeshift_theory

Python analysis and review of 2019 global pop music: which song lists occupy us?

Write in the front: just after Christmas, do you still continue to learn the holiday flavor of the survivors? When you are in a hurry, don't forget to find some good songs for yourself to relax, wind around the music to see how the trend of pop music in 2019 is analyzed in Python! Yesterday afternoon, I had nothing to do with it. I listened ...

Posted on Thu, 26 Dec 2019 15:30:55 -0500 by webpals

Python crawler tutorial: tmall product data crawler

Tmall product data crawler tutorial Download chrome browser View the version number of the Chrome browser and download the corresponding version number of the chrome driver pip installs the following packages pip install selenium pip install pyquery Log in to Weibo and bind Taobao account password through Weibo Fill in the absolute path of chr ...

Posted on Thu, 26 Dec 2019 09:23:38 -0500 by straycat