1. Systematic learning
For Excel operations, the Xlrd/xlwt modules are required. The system learning URL is as follows:
Using python to read and write Excel -- using xlrd
Official documentation
Python uses Xlrd/xlwt to Operate Excel
Use Python to
3.1.4 nested list Derivation
In the list derivation, the initial expression can be any expression. Contains other list derivation types.
Think about the 3*4-Dimensional Matrix Implemented by three lists with a length of 4.
>>> Matrix = [
... [1, 2, 3
What is SSL?
SSL is a popular encryption technology that protects users' privacy information transmitted over the Internet. After the website uses this encryption technology, a third party cannot read any communication information between you and
By default, the MySQLdb package is not installed. Do not believe it? You can see the code similar to the following.Copy codeThe Code is as follows:-bash-3.2 #/usr/local/python2.7.3/bin/python get_cnblogs_news.pyTraceback (most recent call last
In this case, we wanted to outline all the passwords. The algorithms were either too deeply nested or especially memory-consuming (overflow). Later we chose an algorithm with a low probability of simple repetition. The Code is as follows:
Copy
Preface
Series of articles:[Portal]
That's why I met LC today.
Contents
Loop
For
While
Interrupted
Function
Function Definition
Function call
For Loop
The for loop in Python is like the foreach iteration in the shell script. In Python, for
Python objects are the core part of the Python language. Python uses classes and objects to program object-oriented (OOP. The main purpose of object-oriented is to improve the reuse of programs. Python class example class Bird (object): have_feather
Python Study Notes (2)
Process Control
If... else... elif
Example:
If 1> 2:
Print 'aaa'
-------------------------------
If 1> 2:
Print 'aaa'
Else:
Print 'bbbbbb'
----------------------
In this article, the directory loop for while interrupt function defines the function call for loop in Python, The for loop is like the foreach iteration in the shell script. In Python, for accepts iteratable objects (such as sequences) as its
In order to implement a program for managing local e-books, we developed a GUI for some time and used wxPython.
It is difficult to adapt to and get used to, and there is no good-looking effect.
The most intolerable thing is that the processing
To process excel in python, you must use a third-party module xlrd. Therefore, for windows, run the following command in cmd: E: \ ANZHUANG \ Python \ Scripts> easy_install xlrd (the path must be in python scripts and easy_install must be installed)
Six weeks have passed since the start of school. I was too busy some time ago to update my blog. It is relatively blank recently. I plan to summarize the learned python and opengl.
Python execution Method
Interaction Mode
Enter python in the
How to Use ChromeDriver? Download the latest driver version and decompress it # All right, this command is prepared for linux or osx users # For windows users, click it directly. by Ethanol unzip chromedriver_linux32_x.x.x.x.zip, you will get an
Count sorting
Assumptions: Each of n input elements is an integer between 0 and k, where k is an integer.
Basic Ideas: For each input element x, determine the number of elements smaller than x. With this information, you can directly put x into
Basic functions are implemented, but not beautiful enough
Alt + F4 is blocked, but Ctrl + Alt + Del is not blocked
#-*-Coding: UTF-8-*-u "is a built-in lock software. Author: Mpclast edited: Mat 2014 "import sysimport randomfrom PyQt4 import
There are a lot of GUI Libraries in python. I chose mature wxpython. This basically satisfies our needs and is easy to operate. Next we will learn wxpython through some simple examples.
1. Create a simplest GUI window:
3 import wx 2 app=wx.App() 1
Variable does not need to declare the copy code a = 10 # int integer a = 1.3 # float floating point number a = True # True Value (True/False) a = 'Hello! '# String copy code example a = 10 print (a) print (type (a) a = 1.3 print (a, type (a) # built-
Use re, urllib, and threading to capture the content of Tianya post, set the url to the first page of the Tianya post to be crawled, and set file_name to the downloaded file name.
Copy codeThe Code is as follows:# Coding: UTF-8
Import urllibImport
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