Python collaboration notes

One, CO range A collaboration is a computer program component that generates subroutines for non-preemptive multitasking, allowing different entry points to pause or start executing programs at different locations It can be seen as a function that can be pause and a generator. Two, common package asyncio,tornado,gevent Three, the realization of the association. yieldReturn sendcall Four, the four states of the association. inspect.getgeneratorstate(…)Function confirms that this function returns one of the following characters: GEN_CREATER:Wait for execution GEN_RUNNING:The interpret...

There are only one programmer behind these billion dollar websites.

A programmer can be a team. You must never think of it. You must have used Google? Do you think this page is as simple as a programmer? But that’s not the case. Behind the page is a service called Google Web Servers, which has hundreds of people maintaining it. Not only that, but there are hundreds of people and users from different religions and nationalities in hundreds of countries and regions discussing what the Internet portal should look like, far from being a programmer’s competence. 01、4chan——Trash cans on the Internet 4chanThe influence of hobbies and tastes on a l...

Seven ways to create JavaScript objects

> can be transformed into such strings.Person > attribute.username > Two:json   json isjs completes the description of the object. <script type="text/javascript"> var person = { name:"Zhang three ",//It is represented by attribute name: attribute value. age:23, say:function() { alert(this.name+","+this.age); }//No one can be found after the last attribute. } person.say(); /** * JSON can still create an array of objects, creating the same way as JS arrays.*/ var ps = [ {name:"Leon",age:22}, {name...

Selenium Java Maven automated test environment construction

Version Description: JDK Version: 1.8.0_112; Eclipse IDE: 4.6.1; Maven Version: apache-maven-3.3.9; Selenium Version: 3.0.1; FirefoxVersion: 47.0.1; : The installation packages required during the environment configuration process are provided with this document, and the user is asked to extract the corresponding compressed packages according to the following instructions.   Environmental configuration: 1.” is in Taiwan.windowsInstall JDK on the computer and execute the EXE file jdk-8u112-windows-x64.exe in the installation package. After installation, configure the environment va...

[Math_Medium] 885. Spiral Matrix III

Original title: 885. Spiral Matrix III On a 2 dimensional grid with R rows and C columns, we start at (r0, c0) facing east. Here, the north-west corner of the grid is at the first row and column, and the south-east corner of the grid is at the last row and column. Now, we walk in a clockwise spiral shape to visit every position in this grid. Whenever we would move outside the boundary of the grid, we continue our walk outside the grid (but may return to the grid boundary later.) Eventually, we reach all R * C spaces of the grid. Return a list of coordinates representing the positions of the ...

15.Python to recognize login verification code (entry)

1.To identify the login validation code, you need to install Tesseract-OCR at http://jaist.dl.sourceforge.net/project/tesseract-ocr-alt/tesserAct-ocr-setup-3.02.02.exe, the next step is after installation. 2.Precondition: A==PIL has been installed (3.6 version is Pillow). B==The computer has been installed Tesseract-OCR. C==If the tool is Pycharm, the pytesseract package must be introduced in Pycharm setting. 3.The code is as follows: from selenium import webdriver import time import unittest from PIL import Image from PIL import ImageEnhance import pytesseract driver = webdriver.Ie() drive...

Dapper filling in the hole

1)Why Dapper?    EFThe cost of learning is so high that I’ve studied it for a long time, but I still don’t know how to update it to the database after updating the class.         Linq to sqlThis is not bad, but the problem is that if you connect to Mysql, you will die.         Just read this article & lt; & lt; five years later, why should we move from the Entity Framework to the Dapper Tool & gt; & gt; & gt;, and think we can try it.          Basic operation tutorial here, < < Dapper learning notes > > this blogger has only on...