. Install QT
May use qt sdk which include mingw, or install mingw first(mingw-get-inst-20101030.exe) Then QT.
Add qmake. Ext to path (E:/QT/2010.05/QT/bin)
Add mingw/bin and msys/bin to path
. Install Python 3
ActiveState Python
.
R branch open the file in read-only mode
W open the file in write-only mode, and first clear the file content (truncate the file first)
A opens a file in add mode. When writing a file, it is always written to the end of the file, and it is useless
1. add your own Python module to pythonpath.
If you want the python interpreter to find the module you have compiled, the module must be on pythonpath. Otherwise, the module cannot be found when importing the module, therefore, you must add the
Isinstance(
Object, classinfo)
Return true ifObject argument is an instance ofClassinfo argument, or of a (direct or indirect) subclass thereof. Also return true ifClassinfo is a type object andObject is an object of that type. IfObject is
A list is a sequence object that can contain any Python data information, such as strings, numbers, lists, and tuples. The data in the list is variable. You can use the object method to add, modify, or delete data in the list. You can use the list
We are defining:
arr = []arr += "abc"
This will cause arr = ['A', 'B', 'C'] to be the representation of a one-dimensional array.
But sometimes we need two-dimensional arrays:
arr = []arr.append("abc")arr.append("def")
The result is arr = ["abc",
String. capitalize (): uppercase of the first letter of the string
String. count (): obtains the number of substrings in a string.
String. find (): obtains the starting position of a substring in a string.
String. isalnum (): checks
Use read to read files and transmit the number of bytes to read
Write a file to pass the string to be written.
1. Write files
>>> F = open ('e: // test.txt ', 'w') A = [1, 2] F. write (a); traceback (most recent call last): file "", line 1,
Excessive Parameters
It is generally impossible to know the parameters of a function at runtime. Another scenario is that a function can operate many objects. What's more, calling your own functions becomes an api provided to available applications.
1. Python has an automatic garbage collection mechanism (when the object reference count is zero, the interpreter will automatically release the memory ), memory leakage usually occurs when the extended library memory leaks or circular references
1. Install the python client of memcached
Wget ftp://ftp.tummy.com/pub/python-memcached/python-memcached-latest.tar.gzPython2.x setup. py install
2. Install the python client of activemq
Wget
#-*-Coding: cp936-*-import socketprint "Creating socket connecting... ", s = socket. socket (socket. AF_INET, socket. SOCK_STREAM) # convert the network service name (such as http, ftp, email) and Protocol name (such as TCP, UDP, IPX/SPX) # To the
1. Download opencv 2.3.1. Download the OpenCV-2.3.1-win-superpack (about 124 MB, unzip more than 1 GB ). He does not need to compile and is easy to use
2. The OpenCV-2.3.1-win-superpack.exe is self-extracting files, run directly. To decompress the
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