recently watching video learning, the teacher assigned a homework, about how to use Python to merge multiple Excel, the teacher wrote the code I feel more complex, the following is my own improvement after the simpler way. There are two main ways to
First, the module1. Meaning a Python program can invoke a basic set of functions, called "built-in functions," including the print (),input (), and len () functions you have seen. Python also includes a set of modules called "Standard Libraries".
IteratorsWe already know that there are several types of numbers that can directly act on a For loop:
A type is a collection of types: list, tuple, dict, set, str, bytes, and so on.
The other category is generator, which includes
Two. Install PIP for python3.xIn fact, this is not difficult. Download a package and execute two commands.1. First install the SetuptoolsSmall partners can be downloaded via the Official module library: Https://pypi.python.org/pypiHere I will
Python Object-oriented programming
Basic Concept Understanding
Object-oriented programming--object oriented programming, short for OOP, is a programming idea. OOP takes objects as the basic unit of a program, and an object
3. Advanced Features 3.1 slicesL = List (range (100))L[0:3], starting at index 0, until index 3, but excluding index 3If the first index is 0, you can also omit L[:3]also supports taking the reciprocal element l[-2:] Take the reciprocal 2-bit
DictionaryCharacteristics:
No order
Go heavy
Fast query speed, much faster than the list
Consumes more memory than list
FunctionNon-fixed parameters:If your function is not sure how many parameters the user wants to pass in
List Introduction Basics
Use square brackets [] to represent the list, separated by commas
Print (list name) prints the internal contents of the list, including the square brackets and the quotation marks of the strings
Access the
1.eval ()
function: evaluates the string str as a valid expression and returns the result of the calculation.Syntax: eval (source[, globals[, locals]), valueParameters:
Source: The code object returned by a Python expression
is a simple illustration of the Hanoi game, we want to move the top of the x column above the z axis (Hanoi game rules can be self-search, here do not introduce)The Tkinter and Scrolledtext modules need to be introduced, and the code below is
__str____repr____iter____next____getitem____getattr__Normally, when we call a method or property of a class, it will be an error if it does not exist. For example Student , define a class:class Student (object): def __init__ (self): '
When you draw a coordinate chart using the Matplotlib module, you often need to set many parameters for the axis, including the horizontal axis range, the axis scale size, the axis name, and so on, which contains a number of functions in matplotlib
Pycharm remote debugging openstack graphic tutorial,
Today, I want to talk about how to remotely debug openstack. The first tool we use is Pycharm.
1. first introduce the environment
My openstack is installed with rdo in one click and installed on a
Python analyzes job submission and python job submission
This is a very close task: analyzing job submission in python.
Requirements:
Compare the information of the student (extracted based on the file name) who handed in the assignment on the
PyCharm is installed on the 64-bit System of win10, and pycharmwin1064-bit
I have previously introduced many other systems for installing PyCharm. If you are interested, refer:
Pycharm experience (1) Installation and first use
Python installation
JSONLINT: parse the python json data validation library instance, jsonlintjson
JSON (JavaScript Object Notation) is a lightweight data exchange format that is easy to read and write.
JSON Functions
To use the JSON function, you must import the json
Python Study Notes _ 05: Use Flask + MySQL to Implement User Login registration, addition, deletion, query, modification, and _ 05 flask
For more information about the code in this article, see the two blogs. For more information about the source,
Deep understanding of slicing principles and deep understanding of Slicing
A data element is obtained by specifying the subscripts or by specifying the subscript range. This access sequence is called slice. In some cases, it is also called a
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service