Python has powerful scalability. I have listed 50 excellent Python modules, including almost all the needs, such as databases, guis, images, sound, OS interaction, web, and others. It is recommended to add to favorites.
Graphical interface
Summary: several methods for downloading Python web pages
1
FD=Urllib2.Urlopen(Url_link)
Data=FD.Read()
This is the most concise method, and of course the get method.
2
Get Method
Def gethtmlsource (URL ):
try: htmsource =
The Application of bar code will become more and more extensive.Article(Http://www.systron.com.cn/txm-7.htm), write well! You can use your mobile phone to take a QR code. It is really nice to check the QR code! This will become a trend!
QR code
Some time ago, due to the need to collect video data, I tried to download a youku video in batches.Program. Although things are simple, they are quite practical. I will share them with you.
Version: python2.7 + beautifulsoup3.2.1
Import Urllib,
[Share] a python getting started video
When I first learned python, there were relatively few resources on the Internet, especially videos. I just found a video on the Internet and copied it to everyone. The previous sections are quite detailed.
Install Python mysqldb in Linux. I found it really hurts to install it by compiling it, but it's just a matter of time, all kinds of problems ......
There are two methods:
A. quick installation
B. compile it by yourself
1. The fastest and
I have been learning Python recently. This is really a very short and concise language. I like the language that is supported by powerful function libraries. However, I encountered a headache about encoding shortly after my first contact. I checked
Recommended:
Reading, making people progress; walking, changing life.
Reading other people's technical blogs and reading some books will make people grow. The main reason is that when I read different opinions of others, I will force myself to
1. Deep linked list
First, we will introduce some common methods for linked lists:
Append (x): adds an element to the end of the linked list.
Extend (l): merges another linked list into this linked list.
Insert (I, X): insert an element
PythonProgramEverything used is called an object. For every number, string, or even function as an object, python is an extremely completely forward object.
#! Learn moreI = 5Print II = I + 1
S = ''' this is a multi-line string.This is the
Python official introduction:Python is easy to learn and powerful.Programming LanguageIt has an efficient High-Level Data Structure and implements Object-Oriented Programming simply and effectively. Python's concise syntax and support for Dynamic
# Encoding = utf8_ Author _ = 'admin'
# If the file is run directlyIf _ name __= = "_ main __":Print ("Main ")
# How to perform Performance TestingImport timeDef timer (reptimes, func, * pargs, ** kargs ):Start = time. Clock ()For I in range
Python can be used to obtain the IP address of the local machine in a simple way. However, the methods in Windows and Linux are slightly different,Method 1 for obtaining an IP address in Windows
When using dial-up Internet access, there is usually a
Python control statements include if, while, for, break, and continue.1. If statement
The following is an example of a guess digital game:
# Filename: if.pynumber = 10guess = int(input("Enter a integer:"))if guess == number:
Install and use cherrypy and configure the python environment variable
Install and use cherrypy to configure Python Environment VariablesCherrypy is a python-based Web Application Development Framework, a pretty good HTTP framework, which
Http://www.cnblogs.com/yuxc/archive/2011/08/01/2124012.html
Recently, programs are frequently written to deal with file operations. This is relatively weak, so you can find a good article on Baidu. This is the original article portal, I made some
1. Run the python program in Windows
1) run the Python script from the doscommand line
Use the pythoninterpreter to execute the pythonscript. In Windows, the pythoninterpreter is python.exe, and my python file is installed in D: \ python27. You
Sequence (list and metadata)
2.2 General sequence operations
1) IndexFrom left to right (first) is 0, from right to left (last)-1.Indexes can be directly used for strings: "Hello" [2]
2) fragmentTwo boundaries are provided as indexes. The first
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