Pamie is called Python automation module for Internet Explorer. As its name suggests, pamie is a module that implements ie automation.
The official website of pamie provides download of the latest modules. However, due to personal development,
Http://proxies.xhaus.com/python/
Name (click for details)
V
Primary features
MinPythonVersion
V
Design
V
License
V
Last UpdatedYYYY-MM-DD
V
HTTP
V
HTTPS
V
Python Study Notes-first knowledge of Python
1. Install python3
The latest Python version 3.3.2 is available on the official website!
Check whether python is installed on your computer. Python 2 is pre-installed on Linux and Mac OS, but not
Metaclass, metaclass
Metaclass is defined as follows: In object-oriented programming, a metaclass is a class whose instances are classes. just as an ordinary class defines the behavior of certain objects, a metaclass defines the behavior of certain
Requirement: for each operation flow in the system, it is necessary to print the time consumption of all the methods to be executed.
The implementation principle is to use Python's metadata programming to dynamically change the class creation
The maximum number of matching regular expressions, 65535? Re. debug can query the maximum number of matches. In fact, it returns the debug information for each RegEx.
When compile is used to compile expressions, the latest several are cached.
Python is a very good scripting language. It is flexible and lightweight to use and can communicate with local languages such as C/C ++.
The following describes how to install and use python in windows. I personally prefer to use version 3.x
To others: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
1. _ getitem __
Original document: for instance, if a class defines a method named_ Getitem __(), AndXIs an instance of this class, thenX [I]Is roughly equivalentX. _ getitem _ (I)For old-style classes andType (x). _ getitem _ (x, I)For new-style
Python problem set
What does caller mean?
Callable (OBJ) If obj is a code or function
Differences between static method and Class Method
What are object variable classes and immutable classes?
Key type and hash type
Classes with hash ()
This function is said to be called a function generator. I did not see it in the Document. Later I read a usage on the Internet and found that it is actually equivalent to the Return Statement. The following code:
def addlist(alist):
for
It is useful to learn how to use python, because it often involves batch renaming, copying, and searching by specified conditions, especially the latter.
Implement the recursive search function first:
#encoding=utf-8
'''
Created on 2012-4-30
Python cookbook Recipe 2.5. Counting Lines in a File,
A new function enumerate was found today. In general, if you want to traverse both the index and element of a list or array, write as follows:For I in range (0, len (list )):
Print I, list [I],
Source http://blog.csdn.net/sruru/article/details/7803208
I. python has three built-in functions: list, tuples, and strings. They are converted to each other using three functions: str (), tuple (), and list (), the example is as follows:
>>> S =
1. Check the titleCode
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Def test_navigate_page_without_click_link (self ):
Sel = self. selenium
Sel. open (self. BASE_URL)
Sel. open (self.
Today, when I was studying Python Cookbook, I found a syntax from _ future _ import division, which is very strange. I searched the internet for the name of _ future, it turns out to be a very useful module.
For more information, see here.
There is a platform module in Python to obtain information about the operating system.Import platformPlatform. machine () # Returns the machine type, e.g. 'i386'
Platform. node () # Returns the computer's network name
Platform. platform (aliased = 0,
There are two requirements:
Delete all. svn files in a directory and subdirectory
Delete all objects in a folder
In Python, file operations mainly come from the OS module. The main method is as follows:
OS. listdir (dirname): List directories
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