[small attempt] access to the original path course list of mooc.com

As an old MOOC network( https://www.imooc.com/ )Fans, remember that there are many free path courses at the beginning of mooc.com. It's a good way to get started with a language. Now mooc.com has developed the charging mode and added many higher-level courses, which is a good thing, but the original free path can not be found. If there is an or ...

Posted by carichod on Thu, 02 Apr 2020 00:54:08 -0700

MIT6.0001 notes, LECTURE 5:Tuples, List (aliasing, mutability, cloning details)

This blog post mainly explains the advanced features of list s, including aliasing, mutability, and cloning.These three attributes require special attention when assigning values.This note and code comes from MIT's public session, Lesson 5. <Introduction to Computer Science and Programming in Python>. aliasing For simple data t ...

Posted by Shawn Jetton on Wed, 01 Apr 2020 19:08:10 -0700

python crawler 01 - create a simple crawler (with 100G of a novel web database)

Disclaimer: the database provided in this article is for technical verification only, and any form of commercial and reprint activities based on this database are prohibited. The legal liability arising therefrom shall be borne by itself! , once you continue to read this article, you will be deemed to agree to this stat ...

Posted by noobie_daddy on Wed, 01 Apr 2020 18:59:41 -0700

5.3Python function (3): indefinite length position parameter & indefinite length keyword parameter

@Variable length position parameter Use the location parameter defined by * arg_name to represent any multiple location parameters; In Python standard library, * args is used to name indefinite length position parameter. Of course, we can customize this name; The type of indefinite length position parameter is tuple; In the ...

Posted by Destramic on Wed, 01 Apr 2020 12:59:59 -0700

Python web crawler practice (2): crawling novel website novel

Python web crawler practice (2) 1, Demand analysis Crawling a novel from a novel website Two, steps target data website page Analysis data loading process Analyze the url corresponding to the target data Download data Cleaning, processing data Data persistence Key point: analyze the url corresponding to t ...

Posted by MrCool on Wed, 01 Apr 2020 02:13:11 -0700

The use of Python loop

Recently, I was learning Python, trying to make a simple student management system with for and while loops. Now I have encountered the problem that I can't define the input data type and jump out of the for loop The first restriction is: if there is no integer input, the program directly reports an error, in which the conversion is used, code ...

Posted by evanesq on Wed, 01 Apr 2020 01:19:16 -0700

django user login design of novice Python

Environmental preparation Front end framework semantic ui Python 3.6.4 pip install django The development tool is pyCharm Data model design The user table contains the following information User name Full name Gender Password Cell-phone number Creation time Update time Is it effective? The user/models.py user model is as follows user is the ...

Posted by plouka on Wed, 01 Apr 2020 00:13:14 -0700

Analysis of Python 3. X: paramiko module

First, the first application of this module SSH client Here is a simple code to understand import paramiko # Instantiate an ssh client object ssh = paramiko.SSHClient() # Automatically add the machine you want to connect to in know_host, ignore this verification, and pay attention to the passed parameter paramiko.AutoAddPolicy() ...

Posted by huszi001 on Tue, 31 Mar 2020 22:12:49 -0700

Python learning notes (13) Python functions (1)

Function foundation Function: a function is an organized, reusable code segment used to implement a single or associated function. Function can improve the modularity of application and the reuse rate of code. Python provides many built-in functions, such as print(). You can create your own functions, which are called user-defined functions. De ...

Posted by Wardy7 on Tue, 31 Mar 2020 21:54:52 -0700

Python+Selenium notes (12): data driven testing

(1) Foreword Through the use of data-driven testing, the input value and expected results can be parameterized. (for example: input data and expected results can directly read the data of Excel document) (2) ddt The ddt library can parameterize the variables in the test. When using ddt, use @ ddt decorator on the test class and @ data decorator ...

Posted by viko20 on Tue, 31 Mar 2020 17:41:15 -0700