Easy_install is more accurate to being a module bound to setuptools. It can be used for download, build, installation, and management.
General execution method:Easy_install + URL
However, if some applications or scripts are in Python cheeseshop,
For example, 'string', "string", "" string ", or '''string '''.
There is no difference between single quotes and double quotes. The main function of the three quotation marks is to include line breaks in strings. That is to say, if the content in
The _ call _ about Python has such an explanation in the official documentation (http://docs.python.org/reference/datamodel.html? Highlight =__ call __# object. _ call __)
Object._ Call __(Self[,ARGs...])
Called when the instance is "called" as
Python provides two built-in functions, ORD and CHR, for conversion between characters and ASCII codes. For example:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
>>>
Print
Ord (
'
ArticleDirectory
Why Python wants self
Why does Python assign values to self without having to assign values to self?
Extension
Address: http://sjolzy.cn/Why-should-self-Python.html
Since getting started with python, I have
Magic methods and attributes
------------------------
Preparations
To ensure that the class is a new type of class, you should add _ metaclass _ = type to the beginning of your module.
ClassNewtype (object): mor_code_hereClassOldtype:
CopyCodeThe Code is as follows: #-*-coding: UTF-8 -*-
From win32com. Client import dispatch
If _ name _ = '_ main __':
APP = Dispatch ("Et. application ")
# Minor version number
Print 'app. Build: % s' % app. Build
# Major version number
I looked at the python FAQ these two days and found that python is more flexible than I thought. I can't try it because I don't have a practical project drill. However, Dongdong In the FAQ should have authority. Here are some of my ideas.
We know
Because the projects recently made are very special, the language used is a company's internal IDE environment, and the code produced by this IDE is not stored in text, they are all placed in binary files, and the language is almost invisible to the
In the threading module, there is a very special class local. Once a local is instantiated in the main thread, it will always live in the main thread, and when the sub-thread started by the main thread calls this local instance, the value is saved
Function Description
Int (x [, base]) converts x to an integer.
Long (x [, base]) converts x to a long integer.
Float (x) converts x to a floating point number.
Complex (real [, imag]) creates a plural number
Str (x) converts object x to a
The menu operations in python tkinter are mentioned in the previous blog.
Below are the multi-level sub-menu operations of tkinter
:
tkinter * = { : : : : :
Copy codeThe Code is as follows:#-*-Coding: UTF-8 -*-
Import random
# NumberClass NumberItem:# Number of digits_ GUESS_NUMBER_COUNT _ = 4
Def _ init _ (self ):Self. _ num _ = []# Whether the length is standardDef IsFormat (self ):Return self. _ num _
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