Use Python to do a QQ automatic point like artifact, on the code:1 def Qqzan (QQ): 2 browser = Webdriver. Chrome () 3 Browser.maximize_window () 4 browser.get (' Https://user.qzone.qq.com/{}/main '. Format (QQ)) 5
工欲善其事, its prerequisite. Can websites only be accessed interactively? Of course not, as a network of the wild World of a swordsman, old black to develop the sword of freedom, hehe, is to write code can automatically log on the system tools to obtain
Definition of a dictionaryA dictionary is a series of key-value pairs, which are represented by a series of key-value pairs placed in {} info = {'first_name':'yueshang','last_name ':'QIN',' age':' ' city':'KunMing'}Dictionary increment, delete,
The ==pipes module = = (Unix only) "Pipes" module provides support for "conversion pipeline (conversion pipelines)". You can create pipelines that contain many external tool calls to handle multiple files. As shown in [Example 3-8 #eg-3-8].
Using regular expressions to handle Nginx logsOneGroup regular matches for a single row of logs, returning the matching results (in dictionary format):From datetime import datetimeimport re# single-line log logline = "183.60.212.153--[19/feb/2013:10:
PEP8 Python Coding SpecificationA code orchestration1 indent. Indentation of 4 spaces (the editor can do this), no tap, no mix of taps and spaces.2 The maximum length per line is 79, the line break can use backslashes, preferably with parentheses.
The threading module (optional) ' Threading ' module provides an advanced interface for threading, as shown in [Example 3-1 #eg-3-1]. It originates from the thread implementation of Java. As with the low-level ' thread ' module, you can use it only
Chicken soup:First of all, I must cherish a grateful heart, thank the people in this world contact with me, whether you are concerned about me, is help, is indifferent, even disgust, I thank you.Because care and help make me feel the hope of
Time Module Timing and datetime ()Time is represented in three formats 1. Timestamp 2. Time tuple 3. Formatted string (2017-11-1)Timestamp: Typically, a timestamp represents an offset that is calculated in seconds from 00:00:00 Greenwich on January 1
One, open mode of the file
Open mode
Description
R
Read-only mode open, default
W
Write-only opening, written in append form, if file is directly overwritten, if there is no file created
In Python, UDP and TCP traffic is implemented through sockets, which are socket sockets. There are two types of sockets that are connection-oriented and non-connected, that is, TCP sockets and UDP sockets.TCP Communication ModelCreate a TCP
Remember before with my female ticket said, said to help her space praise, point to 999 will not point. At first can remember every day, but later things a lot, will inevitably forget, the first two days of praise when suddenly feel so good boring
Learn: Original link: http://www.cnblogs.com/lhj588/archive/2012/01/06/2314181.htmlFirst, install the XLRD moduleDownload the HTTP://PYPI.PYTHON.ORG/PYPI/XLRD module installation to the Python website, provided the Python environment is already
#!/usr/bin/python#-*-encoding:utf-8-*-classAnimal:animal_num=0classDog (Animal):#Class Help documentation ' This is help' #two underscore, class's private property, cannot be accessed outside the class, Self.__dog_name access is used inside
The FLASK-WTF extension can turn the process of working with Web Forms into a pleasurable experience.One, cross-site request forgery protectionBy default, FLASK-WTF is able to protect all forms from cross-site request forgery attacks. A malicious
CollectionYou can create a collection with Set (), or directly with {}Set_a = Set ([1,2,3,4,5]) Set_b = {1,3,5,7,9}print (set_a) print (set_b) print (Type (set_a), type (set_b))The collection also has a variety of operations, which can be recorded
How to use functions commonly used in file/directory in OS moduleGETCWD () returns the current working directoryChDir (path) Change Working directoryListdir (path= '. ') enumerates the file names in the specified directory ('. ') Represents the
Python xlrd, a common method for reading excel, pythonxlrd
I watched a video on excel operations by the old K. I am very grateful to the old K for sharing it!
To install the xlrd module, open cmd and enter the command: pip install xlrd to install
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