python day 7 (nested functions, object-oriented programming)

Nested functions (intrinsic functions) Nested function Usage scenarios: 1. Subpackage, data hiding 2. Implement DRY principle and avoid duplicate code inside function 3, closure def outer(): print('outer running') def inner01 print('inner running) inner01() #Can only be used internally out ...

Added by jollyjumper on Sun, 01 Mar 2020 12:20:39 +0200

FastDFS Single Machine Setup

brief introduction FastDFS is an open source, high performance, distributed file system (DFS). The FastDFS system has three roles: Tracker Server, Storage Server, and Client.Tracker Server: Track the server, mainly for scheduling and balancing purposes; manages all storage server s and groups, and each store connects to Tracker after startup, ...

Added by jawaidpk on Fri, 28 Feb 2020 22:28:21 +0200

Deploy Zookeeper and Kafka clusters through docker

Recently, a kafka service needs to be set up locally. It's more convenient for docker to pull an image. Record the process of setting up 1. Install virtual machine I prefer virtualbox, which gives people a very lightweight feeling. The simplest version of CentOS 7.3 installed in Linux. I used to be fond of Linux desktop, but virtual machine res ...

Added by benphp on Fri, 28 Feb 2020 14:01:53 +0200

New features of PHP7.0~PHP7.1~PHP7.2~PHP7.3~PHP7.4

As you all know, php is constantly updated and expanded, and each version has a performance improvement. Next, I will explain the new features of php 7. X. I will explain the features of each version. New features of PHP7.0 New features of PHP7.1 New features of PHP7.2 New features of PHP7.3 New features of PHP7.4 N ...

Added by sherone on Thu, 27 Feb 2020 13:25:20 +0200

Xiaohao algorithm let you learn how to use code to judge "24" points

"24 o'clock" is a kind of mathematical game, just like chess and go, it is a kind of entertainment that people like to see. It can't be traced back to when it started, but it is gradually accepted by more and more people with its unique mathematical charm and rich connotation. Today, I'd like to share an algorithm topic about "24 ...

Added by abcd1234 on Wed, 26 Feb 2020 05:12:30 +0200

ID Number Verification System Based on Visual Structure

ID Number Verification System Based on Visual Structure Abstract: This work is a universal ID number verification system. It has been tried to run on Linux and Windows systems, and the results are satisfactory.The system creates a highly compatible visual interface by using the base GUI library tkinte ...

Added by vbzoom.com on Sun, 23 Feb 2020 04:58:02 +0200

The method of generating random number in Python built-in random module

This article mainly introduces the method of generating random numbers by Python's built-in random module. This article gives you a very detailed introduction, which has certain reference value. You can refer to In this paper, we introduce in detail the other methods of generating random sequence in the ...

Added by rwoods on Sat, 22 Feb 2020 15:50:30 +0200

51 Single-chip computer-lcd1602 driver

51 Single-chip computer-lcd1602 driver This paper describes and summarizes the driver of 51 single-chip computer external lcd1602. The clock circuit of 51 single-chip computer uses 12MHz crystal oscillation, P0 port external pull-up resistance is connected with LCD1602 data port D0-D7, P2.7 and LCD160 ...

Added by phenley on Sat, 22 Feb 2020 04:54:57 +0200

Platform of beauty and skin care based on Flask framework

1, Development tools This platform uses Python programming language, uses Flask and Bootstrap framework, develops under Windows 10 operating system, uses Pycharm development environment, front-end development uses HTML+CSS+JS mode, database uses MySQL database, browser uses Google Chrome. 2, Demand ...

Added by Dtonlinegames on Fri, 21 Feb 2020 07:50:48 +0200

Learn java 8 together -- ForkJoin

Let's learn about the use of reduce in Java8 (7) - Stream. The bottom layer of parallel flow is the branch / merge framework. The core idea of the branch / merge framework is to split a large task into multiple subtasks, and then integrate the execution results of each subtask to return a final result. ForkJoinPool The core class of the branch ...

Added by Snorkel on Thu, 20 Feb 2020 09:54:11 +0200