sysModular
The first is the file name, followed by the incoming content.
1 #!usr/bin/python
2 # -*- coding: utf-8 -*-
3
4 import sys
5
6 print(sys.argv) #The command line parameter List, the first element is the program itself path.
7
8 def post():
9 print('ok')
10
11 def dowmload():
12 pass
13
14 if sys.argv[1] == 'nizhipeng':
15 post()
16
17 elif sys.argv[1] == 'download':
18 download()
19
20 import time
21 print(sys.path) #Returns the search path of the module and initializes the value of the PYTHONPATH environment variable.
22
23 print(sys.platform) #...
ortainer(Go is a lightweight Web management interface that allows you to manage easily.Docker Host orSwarm Cluster.
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...
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...
Today’s program is a Hamlet word frequency statistics, that is, statistics of the frequency of each word in Hamlet. For the first time, I tried to use the top-down design method and the top-down execution method. A lot of errors have been recorded during this period, so as to avoid future recidivism.
Before programming, intercept one part of Hamlet online.It should be noted that when the txt type is saved, the encoding mode selects’utf-8′. Figure:
Next, analyze the whole programming topic and list the steps:
The first step is to open the file and read it and separate every ...
Precondition:
1. Docker is already installed on the server (my side is CentOS 7) (the installation steps are simple, refer to my last blog)
2.Java and Maven have been installed on the server.
After meeting the above conditions, we can begin:
1. Create a simple Spring Boot application with only one controller, DockerController, as follows:
package cn.bounter.docker.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestM...
Preface: In fact, the installation steps of Docker official website is very detailed, if some people are not good at looking at English slower, you can directly look at me, I am also from the official website, the specific steps are as follows
1. Install dependency packages
$ sudo yum install -y yum-utils \
device-mapper-persistent-data \
lvm2
2. Install the yum Library
$ sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
3.Install the latest version of Docker
$ sudo yum install docker-ce
4. Start Docker
$ sudo sys...
As a front-end rookie, in the usual development and learning, in addition to in-depth understanding of the various features of JavaScript and css, familiar with a framework is also essential. Vue is very popular because of its small, lightweight, learning and smoothing features.
Here is a summary of the pit and tricks of the little rookie.
1.Avoid double brackets when loading pages. Official recommendation v-cloak
<style>
[v-cloak] {
display: none;
}
</style>
<div id=’app’ v-cloak>
{{message}}
</div>
2.I haven’t thought about it yet