Lesson 2, Use of the python while loop
Introduction:
Last lesson, I learned the basic use of python turtle library, moving forward and backward. This lesson needs to draw more than one figure, so it is not easy to draw more simple things. 0/1 is simple, but it can make up a rich and colorful multimedia world.
Course content:
1. Look at the python turtle library again
2. Draw a s ...
Added by Spaceboy on Fri, 13 Sep 2019 09:53:13 +0300
Multithreaded Concurrent Programming
Concurrent programming
Concurrent (pseudo): Because of the speed of execution, it is not perceptible
Parallel (true): create 10 simultaneous operations
thread
Single-process, single-threaded applications
print('666')
What exactly is a thread?What is a process
Python does not have this on its own; the threads and processes of the operatin ...
Added by razmon on Thu, 12 Sep 2019 20:39:14 +0300
[Golang] Talk about Gos libraries that handle command line parameters and configuration files
Preface
You should have been writing Go recently, so you won't have to work with some command line parameters and configuration files.Although the native flag libraries for Go are easier to use than other languages in dealing with command line parameters, there are many useful libraries in the Go community.This article mainly introduces you to ...
Added by estan on Thu, 12 Sep 2019 20:04:26 +0300
The concept of multithreading, how to create and thread state.
The concept of multithreading
Modern operating systems can perform multiple tasks, i.e. they alternate multiple tasks in turn (as our users seem to be doing multiple tasks at the same time).
process
A task in a computer is called a process. So ...
Added by Wayniac on Thu, 12 Sep 2019 16:33:34 +0300
Write a script to automatically traverse the key functions of channel packages using UiAutomator
In the process of automated testing, there is a need. The reason is that in the outgoing channel package, there are occasionally two channel packages that failed to log on to Weibo, so I want to use UiAutomator to write a script to automatically traverse the login mode of each channel package. After experimenting with the first edition, we fina ...
Added by sv4rog on Wed, 11 Sep 2019 10:58:55 +0300
Joseph Problem of Data Structure and Algorithms
Introduction to Joseph:
It is said that Josephus, a famous Jewish historian, had the following story: 39 Jews hid in a cave with Josephus and his friends after the Roman occupation of Chotapat. 39 Jews decided to die rather than be caught by the enemy, so they decided to commit suicide. 41 people lined up in a circle and were opened by the firs ...
Added by quicknb on Wed, 11 Sep 2019 10:36:47 +0300
How to Debug Service in Knative
What if the service deployed in Knative is abnormal? Don't worry. This article teaches you to step by step in Knative.
View command line output
Check whether the command output to execute the deployment is successful or not. If the command deployment is interrupted, you can see the reason for the deployment failure in the output information. ...
Added by 86Stang on Wed, 11 Sep 2019 07:20:17 +0300
ThreadLocal parsing of Java concurrent programming
Links to the original text: https://juejin.im/post/5d7771c9f265da03c34c25da
This article discusses ThreadLocal in JDK 1.8
(If you want to learn programming by yourself, please search Circle T community More industry-related information and ...
Added by Braet on Wed, 11 Sep 2019 06:09:57 +0300
Map of Java Collection Source Analysis: LinkedHashMap_A Little Classroom (Multi-shore College)
LinkedHashMap is a subclass of HashMap, so it also has many features of HashMap. The difference is that LinkedHashMap also maintains a two-way linked list to ensure that the traversal order through Iterator is consistent with the insertion order. In addition, it supports Access Order, which is sorted according to the order in which the elements ...
Added by genom on Wed, 11 Sep 2019 05:58:28 +0300
Curl's Solution in the Swoole Coprocess
It is well known that Curl is not recommended in SWOLE applications because it blocks processes.
This article will use actual code and data, in the most intuitive way, to let you understand why.
Finally, Curl's solution in Swoole will be given. If you don't want to see the analysis, you can go straight to the end.
Routine comparison
Yu Run does ...
Added by kr4mer on Wed, 11 Sep 2019 04:59:38 +0300