Python Initial Python Decorator

Python Initial Python Decorator 1. The principle of openness and closure: (1) Opening up code extensions It is impossible for any program to think about all its functions at the beginning of its design without any updates or modifications in the future. So we have to allow code to expand and add new functions. (2) Modifying source code is close ...

Posted on Fri, 06 Sep 2019 00:56:32 -0700 by Salis

Preliminary Study on Test Framework of Linear Interface Based on java

In the process of using the java language as an interface test, it is found that the simplicity of the java language is not as simple as that of scripting languages, such as python. Many functions Python can be accomplished in a few ways, one line of code, several lines of java are required, and sometimes it is not easy to understand.Recently I ...

Posted on Thu, 05 Sep 2019 19:50:52 -0700 by simulant

Traversal of Graphs: BFS and DFS

title:'Traversal of graphs: BFS and DFS' date: 2019-09-03 19:24:07 tags: python, data structure categories: Computer theory Ergodicity of Graphs BFS (breadth-first search) Principle and procedure of the algorithm According to the breadth-fir ...

Posted on Thu, 05 Sep 2019 01:24:13 -0700 by LanceT

Python AttributeError: 'Module' object has no attribute 'STARTF_USESHOWINDOW'

Scholars have to be ambitious to learn, not to learn, not to learn, not to become a broad talent, not to aspire to become a scholar. —— Zhuge Liang Du Jinyang Today's new colleague's installation environment encountered a puzzling problem: AttributeError: 'Module' object has no attribute 'STARTF_USESHOWINDOW' It seems that none ...

Posted on Thu, 05 Sep 2019 01:19:59 -0700 by Rai_de

Web Crawler Learning Notes

Web Crawler Learning Notes (2) 1 Data "Python Web Crawler from Introduction to Practice" Tang Song, Chen Zhiquan. Mainly for Python 3 under windows platform. Lessons on Rookie Birds - "python" 2 Notes 2-1 Python Foundati ...

Posted on Wed, 04 Sep 2019 22:53:00 -0700 by JayFM

The sum of two numbers [of moderate difficulty]

Topics Two non-empty linked lists are given to represent two non-negative integers. Among them, their respective digits are stored in reverse order, and each of their nodes can only store one digit. If we add the two numbers together, we return a new list to represent their sum. You can assume that neither of these numbers will begin with ze ...

Posted on Wed, 04 Sep 2019 21:16:52 -0700 by monkuar

Deploying simple services through Docker Swarm

This tutorial will introduce how to use docker swarm to arrange and distribute friendly hello: v4. This service can be accessed by browser to get the Hostname of the current node. The final effect is as follows: STEP 1: Creating Virtual Machines In order to simulate the cluster environment, we create three virtual machines, one as manager node ...

Posted on Wed, 04 Sep 2019 19:50:35 -0700 by jursten

Python 3 Quick Start - Pandas Data Processing

Python 3 Quick Start (15) - Pandas Data Processing 1. Function Application 1. Introduction to Function Application There are three ways to use a custom function or other library function on a Pandas object.pipe() uses functions for tables, apply() for rows or columns, and applymap() for elements. 2. Application of Table Functions Custom action ...

Posted on Wed, 04 Sep 2019 17:59:04 -0700 by ghostrider1

10 - Event operations on DOM

DOM: Document Object Model, API for manipulating elements on Web pages. For example, let the box move, change color, and rotate the map. 1. Events. JS is an event-driven language. Three Elements of an Event The three elements of events: event source, event and event driver. Event source: HTML tags that trigger subsequent events. Event: JS ...

Posted on Wed, 04 Sep 2019 01:46:58 -0700 by namasteaz

python's Django framework (routing system, include, naming URL and URL reverse parsing, namespace schema)

12.36 Django Routing System Basic format: from django.conf.urls import url urlpatterns = [ URL (regular expressions, views view functions, parameters, aliases) ] ​ Regular expression: A regular expression string views view function: A callable object, usually a view function or a string specifying the path of a view function Par ...

Posted on Tue, 03 Sep 2019 07:47:14 -0700 by localhost1