Hello, I'm a little circle who loves to learn programming. Today I'll talk about the if/elif/else statement
import time as t
a = 0
while a < 1:
x = input('Please enter a number (1-9)\n')
y = ['1', '2', '3', '4', '5', '6', '7', '8', '9']
if x in y:
print('The input is correct!')
a=a + 1
Posted by opencombatclan on Wed, 13 May 2020 17:00:53 +0200
This tutorial series is divided into three phases
1.flask restful web service
2. Flash restful API (to be updated)
3. Flash httpauth implements permission control (to be updated)
4.uwsgi management flash application (to be updated)
Article excerpted from http://www.pythodoc.com/flask-restful/
I corrected some of the procedural problems arisin ...
Posted by cmzone on Wed, 13 May 2020 14:22:53 +0200
In system testing of B/S architecture, it is sometimes necessary to import Excel files to generate some data records. When the amount of data is small, there is usually no problem. When the amount of data imported is large, the performance of the system is a test.To verify the performance of your system, sometimes you need to import a large amo ...
Posted by anon_login_001 on Mon, 11 May 2020 03:09:31 +0200
1, openpyxl of excel for python operation
According to the official documents, openpyxl is a third-party library that can handle Excel files in xlsx/xlsm format (A Python library to read/write Excel 2010 xlsx/xlsm files).
There are three main concepts in openpyxl: Workbook, sheet and cell.
Main operations in openpyxl: open Workbook, lo ...
Posted by vidyashankara on Fri, 08 May 2020 22:30:08 +0200
Today, I installed the docker environment for my colleagues in the R & D department on the domestic winning Kirin 7.4 operating system. Because of its special environment, I couldn't use the Internet repo source, so I only used the rpm package for the installation. Because it is the first time to use the rpm package for the installation of ...
Posted by EY on Fri, 08 May 2020 15:22:13 +0200
Introduction to producer consumer model
1. Why the producer consumer model is needed
Producer refers to the task of production data, and consumer refers to the task of consumption data.
When the producer's production capacity is far greater than the consumer's consumption capacity, the producer needs to wait for the consumer to consume before c ...
Posted by Spaceboy on Fri, 08 May 2020 12:27:28 +0200
There are at least two types of errors in Python: syntax errors and exceptions.
Syntax errors are also called parsing errors:
>>> while True print('Hello world')
File "<stdin>", line 1
while True print('Hello world')
SyntaxError: invalid syntax
The parser indicates the error line ...
Posted by bigger on Thu, 07 May 2020 10:12:10 +0200
We can get the json file to be parsed and convert it to json for saving by using Charles to grab the package and transfer the interface automation test case. So let's read it.
First of all, let's look at the last document,
"name": "testcase description",
Posted by saami123 on Wed, 06 May 2020 16:46:24 +0200
Python Basic Tutorial
Configuring the Python environment in SublimeEditor
Add comments to Python code
Use of variables in Python
Data types in Python
Keyword in Python
Python string operations
list operation in Python
Tuple operation in Python
Pythonmax() and min() - Find the maximum and minimum values in a list or array
Python finds the large ...
Posted by smallflower on Wed, 06 May 2020 03:17:12 +0200
cookie usage for urlib:
If you already know the cookie, or the cookie you obtained through packet grabbing, you can log in directly in the header's information;
The cookie information on the website of Jingdong is different from that on the website of Jingdong,
You can log in to JD, grab the cookie information, and t ...
Posted by clanstyles on Wed, 06 May 2020 02:06:44 +0200