Package Layout Pack ()The current feeling about it is that when a form's object is set to the end of the property, it is used to bind to the form. After that, you can't set the properties anymore.
Name
Describe
Range of
SYS modulesys.argv command line argument list, the first element is the program itself path Sys.exit (n) exits the program, exit normally (0) sys.path Returns the search path for the module, using the value of the
1. List of lists
Definition List
>>> alist=[' Lydia ', ' Miranda ', ' Tony ', ' Cody ', ' lorries '>>> Print (alist)[' Tom ', ' Ruby ', ' Eddie ', ' Eric ']
Access the elements in the list by subscript
>>> Alist[0]'
Python is a strongly typed, dynamic scripting language.Strongly typed: does not allow the addition of different typesDynamic: Does not use the display data type declaration, and determines the type of a variable is the first time it is assigned a
Button controlsNo function buttonThe Text property of the button displays theNo matter how the form is resized, it is always centered in the top-most upstream of the formClick Trigger EventThe command property of the Button invokes the method to
Python Object Properties0x01: all Python objects have three attributes and properties* Identity: Each object has a unique identity identity itself, and any one can be obtained using the built-in function ID ().* Type: Determines what type of value
SetDefine set ([1,2,3,4]){1,2,3,4}Key values are not repeatableTernary operatorsif Else value2Depth copyImport"123"# shallow copy # deep copy Summarize:1. The depth copy does not copy the STR and the numbers, using the same area of memory.2. For
#-*-coding:utf-8-*-#Classic class or Old test classclassA:Passa=A ()#New ClassclassB (object):Passb=B ()#Python2 not supported#print (a.__class__)Print(A.__class__)Print(Type (A))Print(Type (a))#Python2#__main__.
One, print 99 multiplication table:#coding: Utf-8for i in range (1,10): for J in Range (1,i+1): Print ("%dx%d=%d")% (j,i,j*i), print ' \ n 'Results:650) this.width=650; "title=" 99.png "alt=" wkiom1llma-trl7_aaassxicmss619.png-wh_50 "src=" https://s1
Brief introduction:
AJAX = Asynchronous JavaScript and XML (asynchronous JavaScript and XML).
AJAX is not a new programming language, but a new method of using existing standards.
AJAX is the art of exchanging data with a server and updating parts
First section Python file types
Source
Python source files with "py" extension, interpreted by the Python program, do not need to compile
BYTE code
Python source files are compiled with a file with the extension "PYc"
Compilation
Download the Python version of Py2exe and use this tool to package your own programs as EXE files. Use this tool to write a setup.py file for packaging (name can be self-determined, not necessarily setup.py), write well after the command prompt
The Python Excel operation requires an additional download of the XLRD and XLWT packages that correspond to the Python version for reading and writing to Excel.
Installation method: Directly after decompression, in the character command interface
Recently to prepare to learn python, due to the differences in the version, do not know which to learn, now a lot of things are based on the Python2 Foundation, but python2 in 2020 years or so may stop, so simply decided to two are loaded!
First
I. Generators and iterators
1. Generator
The generator has the ability to generate, which simply represents the ability to generate, and when we need to use it, it is generated through an iterator. Because he only represents this ability to generate,
Python-numpy
Write and access to CSV files
Writing to a CSV file
CSV (comma‐separated value, comma-separated values), is a common file format used to store bulk data.
Writing to a CSV file
Np.savetxt (frame, array, fmt= '%.18e ', Delimiter=none)
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