Python is a programming language that I like very much, while Emacs is a leader in the editor. Emacs provides Python-mode. Input M-x Python-mode to enter the python mode. Correspondingly, the python menu appears on the menu bar. Of course, in
1. Install Python:
Download http://download.gna.org/pychart To uncompress and use the command Python setup. py install to install the program.
Home: http://home.gna.org/pychart/ for pychart
For example, the directory I downloaded is c: \ Documents
If you have learned the resources accumulated by Python and have good resources, please share them.
1. Concise Chinese tutorial
Http://download.csdn.net/detail/zz_lgy/5631995
2. Python documentation (recommended for personal use)
Python
1. Use minidom to create an XML file
#-*-Coding: cp936 -*-"""Use minidom to generate xml1. Create element and createelement2. Add a subnode and appendchild3. Create text and createtextnode4. Create an attribute, createattribute res =
Python is not just a well-designed programming language, it can complete various real-world tasks, including what developers do day after day. As a tool for compiling other components and implementing independent programs, it is usually used in
I have been paying attention to python for a long time. I have also used it to write a few small programs, but I haven't learned Python seriously yet. This may be the charm of dynamic language. It has many features and is easy to use. It feels good
From three o'clock P.M. to the present (09/02/15), Li Bo finally realized the basic functions of the generator, but the GUI is not quite complete.
Previously, Li Bo implemented a simple interface. I started to implement the form submission program
1. Install python;2. Configure IIS:A. Open the management tool> Internet Information Service;B. Right-click the website properties and choose Properties settings;C. Go to the home directory page to enter the application configuration;D. Add a ing:
Import threadingImport datetimeClass threadclass (threading. Thread ):Def run (Self ):Now = datetime. datetime. Now ()Print "% s says hello World at time: % s" % (self. getname (), now)For I in range (2 ):T = threadclass ()
T. Start ()
Python
Yesterday's parsing Web page (http://blog.csdn.net/xiadasong007/archive/2009/09/05/4521844.aspx) is really a very depressing thing, in my opinion, if you want to truly completely parse any web page, the premise must be very skilled in parsing
This is based on my other C language version using Python implementation, added according to the central order and the post order re-built binary tree function, more detailed explanation can refer to: http://blog.csdn.net/hinyunsin/archive/2011/04/11
1. Python arrays are divided into three types:
(1) List A common linked list. After initialization, You can dynamically add elements through specific methods.Definition method: arr = [element]
(2) tuple Fixed Array. Once defined, the number of
Use import or from... import in Python to import the corresponding module. The module is actually a collection file of some functions and classes. It can implement some corresponding functions. When we need to use these functions, we can directly
Today, I wrote a Python script to import data from mysql. the encoding of the imported and exported databases is inconsistent. We need to establish two data connections to use different character sets, as described in mysqldb documentation, in
Special symbols
Some symbols have special definitions in Python compared with C/C ++ and Java.
_: Value of the last expression
Example:
>>> 4/2 2 >>>_ 2 Print _ + 10 12
%: String format Operator
Example:
>>> Print '% s is Number
I wrote a script for testing the website and ran it with multiple threads. Each thread retrieves the webpage once per second, because the script uses threads, time, and ulrlib, it may be useful to others. paste it.
Another reason is that through
This is a problem in the python-China Mail list. If efficiency is not taken into consideration, this problem may be very simple. You can directly read the content of the entire file and split the file. There may be simpler methods. However, if 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