File encoding is UTF-8 while adding #-*-coding: UTF-8 -*-
All strings in the file are prefixed with U, such as U "Chinese"
When you input (capture some UTF-8/GBK webpages) and output (output to webpages and terminals), remember that python is
By default, after python is installed in windows, the system does not automatically add corresponding environment variables. In this case, you cannot directly use Python commands in the command line.
1. first, you must register the python
Recently, when I was doing seo, in order to enable quick indexing of external links, I thought of using the Ping function. Both Google and Baidu have related Ping introduction, if you are interested, you can check related knowledge. In addition to
Speaking of the python GUI, I am not familiar with it. At present, the main python is mainly to use python to write scripts and web development, which does not involve writing software, but I am going to study Python software development later.
Http://www.sace.cn/members/persons/lpjcom/blog/20061011_115045_788http://blog.csdn.net/zhangj1012003_2007/archive/2010/04/16/5493714.aspx
Http://www.cnblogs.com/huxi/archive/2010/07/04/1771073.html
Http://wiki.ubuntu.org.cn/index.php? Title =
Install Python ide:
Eclipse supports many plug-ins. How to Design and install a plug-in, such:
1. From the menu, help-> install new software.
2. Specify the URL of the plug-in.
3. Enter keywords, such as pydev
4. select from the matched plugin.
Soon after I learned python, my job was mainly to use. net, so many things of thinking will be related to C. Especially in terms of understanding, the general idea is to compare with C # To see what is the difference
Array and tupleTuple is
ArticleDirectory
1. Print Output
2. Logging Module
I did not like debugging very much.ProgramI feel that debugging is also necessary. I would like to briefly summarize several common debugging methods. 1. Print Output
Do not
The Python static compiler compiled by wxpython and pychecker is used to find errors in the py script in the compiler.Open source code, share it with pythoner! From wxpython. wx import *Import timeImport sysImport pychecker. checker2Import
Basic string operations
All standard sequence operations (indexing, partitioning, multiplication, determining membership, length, minimum and maximum values) are also applicable to strings, as described earlier. However, note that the strings
List,TuplesAndDictionaryIt is a collection of data elements that are organized together in a certain way and belong to the data structure.
ListAndTuplesThe main difference is that the list can be modified, and the tuples cannot be modified. It is
I was not able to deal with it after a long time. I was so upset that I made a military order in an angry manner. So I got it...
Write down the configuration process: (my system Debian 3.1, vim7, python2.4)[1] Download vim7 source package
Author: vamei Source: http://www.cnblogs.com/vamei welcome reprint, please also keep this statement. Thank you!
Through our basic tutorial, we have established basic concepts for python and have a relatively clear understanding of objects and
1. Copy. Copy: only the parent object is copied, and the internal sub-objects of the object are not copied.
2. Copy. deepcopy: Deep copy object and its sub-objects
A good example:
Code highlighting produced by Actipro CodeHighlighter (freeware)http:/
1. Because the example in does not have a Chinese corpus, it is replaced by an English string. The same idea (such as dividing finallylast into ['Finally ', 'lala']
2. Code segmentation Module
Code
Code highlighting produced by Actipro
Note: This article is based on Python2.4. If you do not understand the words, remember Baidu Google, Wikipedia, and whatever.
1. Regular Expression Basics1.1. Brief Introduction
Regular expressions are not part of Python. Regular Expressions are
For example, when learning modules such as list, tuple, dict, str, OS, and sys, you can quickly and comprehensively learn the processing functions using the Python documentation. Therefore, this built-in document function provides great convenience
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