Happiness
--- Xingyunpi
Automation Test plays an important role in our test work. now I will record my work related to automation test, using Python to run REST API. until now, I have design two kinds of test scenarios: parameter testing for each
Introduction
Tuple
1. tuples are a set of data surrounded by parentheses (). Different members are separated by commas. Access through subscript
2. Immutable sequence, which can be viewed as an immutable list. Different from the list, the data in
More and more things have been taken over recently. The release and O & M work is very mechanical, and the frequency is quite high, which leads to a waste of time and many advantages. Fix bugs or something, test, submit the version Library (2
1. Introduction to mathCopy codeThe Code is as follows:>>> Import math>>> Dir (math) # You can view the list of all function names.>>> Help (math) # view the definition and function 0 prototype
2. Common functions
Copy codeThe Code is as
1Run
1.1 run the python command directly in the command line
1.2 compile the X. py file and run it using python X. py.
2Variable
Print can be followed by multiple outputs
No need to specify the data type. You can assign a value directly after the
Today, I took the time to change my mind and found that the current ST project can only run in linux, but the Department does not use ST to ensure code quality. Therefore, if you want to use it in windows, you first need to execute commands remotely
In linux, files whose names start with periods (.) are hidden,
Win is determined by the file hiding attribute. Therefore,
Syntax ATTRIB [ + attribute | - attribute ] [pathname] [/S [/D]]Key + : Turn an attribute ON - : Clear an
1. issubclass ()
The issubclass () Boolean function determines whether a class is a subclass or Child class of another class.
issubclass(sub, sup)If issubclass () returns True: the sub class given is determined to be a subclass of the parent sup
After one year, I began to face graduation. The graduation season is happy, but it is also urgent. In February, I started planning my graduation thesis. Till now, my thesis has basically been completed. I feel that I have studied my graduation
1. Let's take a good look at the "class" 1. Object
All the friends who have learned java know that everything in Java is an object-oriented language. What about python? Will that happen? First, let's assume it is, and then prove it. If everything is
A regular expression matches a certain type of string with a specific sub-expression. Verify the string or extract specific information from a large number of strings.
Regular Expressions include common and special characters. Most common
I. Common Methods of operating OS modules and shutil modules for files and folders in python.1. Get the current working directory, that is, the directory path of the current Python script: OS. getcwd ()2. Return all files and directory names in the
Chapter01 text 1.1 string-text constants and templates
Function: contains constants and classes for processing text.1.1.1 Functions
Maketrans ()
Translate () ': modifies a group of characters to another group of characters.
1.1.2 TemplateUse string.
1. chr (I)The chr () function returns the string corresponding to the ASCII code.Copy codeCode: >>> print chr (65)A>>> Print chr (66)>>> Print chr (65) + chr (66)AB2. complex (real [, imaginary])The complex () function converts a string or number to
1. Create tuplesCopy codeThe Code is as follows: tup1 = ('physics ', 'chemistry', 1997,200 0 );Tup2 = (1, 2, 3, 4, 5 );Tup3 = "a", "B", "c", "d ";Create null tuplesCopy codeThe Code is as follows: tup1 = ();When only one element is contained in a
1. Basic Introduction 1. Basic syntax
The import keyword is used for module import.
Simply put, every Python source code file ending with the extension py is a module. Other files can be imported into one module to read the content of this module.
The content of the new sh file is as follows: Run this file as su user
#!/bin/bash # INSTALL ORACLE INSTANT CLIENT ################################## # NOTE: Oracle requires at least 1176 MB of swap (or something around there).# If you are using
Recently I encountered a very bad problem. I wrote a background management system. Because it is a background management system, the usage frequency is not very high. When the django program is idle for a while, open the background system again, it
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.