1 Installing the Configuration development environment
1.1 Preparing for installation
Download the following software
Eclipse for C + +
SUN JDK 1.6 doesn't have to be 1.6,1.5.
Python3.1 Python2.6.4 Pythone2.5.2
mod_python-3.3.1.win32-py2.5-apache2.2
Take a look at the inverted quotation marks to successfully execute the named snippet. The code is as follows:
Copy CodeThe code is as follows:
' Ls-al ';
' Ls-al ';
echo "SSS"; ' Ls-al ';
$sql = "Select ' username ' from ' table ' WHERE 1
Baidu Login, first of all, of course, is the first to grasp the login package Baidu, because it is the Web login, the most convenient nature is httpwatch, I use the test account is Itiandatest1, password is Itianda, capture the results:
Copy
1 For example, Python advocates simple and practical thinking, it does not have a switch statement, if you want to implement the switch statement effect
There are 2 ways to write a
(1) through the IF Elif statement to achieve
If condition:
...
Elif
The following is the final code (implemented under Windows)
Copy the Code code as follows:
#-*-coding:cp936-*-Import OSPath = ' d:\\ picture \ \ 'For file in Os.listdir (path):If Os.path.isfile (Os.path.join (path,file)) ==true:If File.find ('. ')
1) Use of regular expressions.
Copy CodeThe code is as follows:
#正则表达式的模块
Import re
#正则表达式
Repattern = '. *[0-9]{4} '
Pattern = Re.compile (Repattern)
#匹配
If Pattern.match (line):
Return True
Else
Return False
2) Use global variables in the
The QR Code recognition program on the phone has done very well, "I check" with very good
I have collected several two-dimensional barcode generation sites:
http://www.morovia.com/free-online-barcode-generator/qrcode-maker.php
1) Forget to add at the end of the IF, elif, else, for, while, class, Def declarations: (resulting in "syntaxerror:invalid syntax")
The error will occur in code similar to the following:
Copy CodeThe code is as follows:
if spam = = 42
Print ('
QUICKSORT (A, p, R) is a subroutine that quickly sorts, calls the partitioning program to divide the array, and then recursively calls QUICKSORT (A, p, R) to complete the process of fast sorting. The worst time complexity for fast sorting is O (N2),
Theme:
Why should there be a way?
The answer is: laziness is a virtue
Definition of method Keywords:
Def
Use callable to determine if it is callable:
Copy CodeThe code is as follows:
x = 1
y = math.sqrt
Callable (x) #False
Callable (y) #True
Demand Analysis:
Save the number of users has broken 6000, the original static report has become bloated,
Slow half every time you open, even the browser hangs up directly
Using Python to build a most simple Web service request a Nick
Returns the
Python makes it easy to support multithreading. You can quickly create threads, mutexes, semaphores, and so on, enabling threads to read and write synchronous mutexes. In the ointment, Python runs on a python virtual machine, creating multithreading
Let's start with the script, and then come down and talk about the knowledge point:
Copy CodeThe code is as follows:
#!/usr/bin/env python
#encoding =utf-8
Import Sys
Import re
Import Urllib2
Import Urllib
Import Cookielib
Class Renren (object):
Easy_install is more accurately a module that is bound to setuptools, and all the work of downloading, building, installing, and managing it can be done by it.
General mode of execution:
Easy_install + URL
However, if some apps or scripts are in
Note: Win7 or WIN8 users are to be executed with administrator privileges.
Project Address: Http://code.google.com/p/my-hosts-file/downloads
Copy CodeThe code is as follows:
Import Urllib
Import OS
Import Shutil
Hostspath = "C:\\windows\\system3
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