1, into the Han Cold blog: http://blog.sina.com.cn/s/articlelist_1191258123_0_1.html
2, hold down the F12 to find a blog list of any one article link code: The following is the first article
wrote to the tea sister's" Brave Wind "was born ...
3,
Python's excellent flaw
Any word has its European flaws, Python is not an exception, let's take a look at Python's strengths:
Python's positioning is "elegant", "clear", "simple", so Python programs always look easy to understand,
Beginners Learn
1.
#-*-Coding:utf-8-*-
random
#随机产生26个手机号: Starting with 13, followed by an arbitrary number between the 4~9, followed by a 8-digit random number
Range:
printrange (8))
2:
# for _ in range:
# prelist = ["130", "131", "132", "133", "13
Python realizes automatic login for Renren
After learning one weeks of Python, write a script that automatically logs on to Renren, and I use the version for Python 3.2.2. Search the Internet, there are many examples, but are basically Python 2.x
Positional parameters, default parameters, variable parameters, named keyword parameters, keyword parameters
When used in combination, the definition of a parameter needs to be defined in turn in the direction described above.
The variable
Http://www.360doc.com/content/16/1020/23/8456313_600090952.shtml
Recommendation: A community-based system based on Tornado/mongodb/redis.
Https://github.com/phith0n/Minos
Recommendation: How to write Pythonic code: http://blog.csdn.net/qq_372670
Two times encountered this problem, the first time is not to add environment variables, the second is the folder does not pip.exe this file
So the problem is to determine whether the Python\scripts folder exists Pip.exe
(1) If present, then will
python keyword Parameters
the usage function of the Python apply function is in the form: Apply (Func,*args,**kwargs)
Use: When the parameter of a function exists in a tuple or a dictionary, it is used to call the function indirectly, either
*************** written in the front ************** This article is a summary of the learning process and some personal thoughts, records only
thin only sparse, I implore you if you find any problems please be sure to exchange a positive message Oh ~
Learning the web crawler will inevitably encounter the use of agents, the following describes how to use requests to set up the agent:
If you need to use a proxy, you can configure a single request by providing proxies parameters for any of the
parameters of the function
To define a function (parameter):
Generic parameters, default parameters, variable parameters (variable position parameters, variable keyword parameters), keyword-only parameters
Call Function (argument):
Position
First PIP3 Install Itchat
The code is as follows
#!/usr/bin/python2.7 #-*-Coding:utf-8-*-ImportItchatImportJsonImportRandomImportSYS Reload (SYS) sys.setdefaultencoding (' UTF8 ') # Get processing groupingdefCreate_process_list (process_size):
Recently began to learn Python's reptile, originally thought to start from the basic various grammar to learn, but in the process of wandering found a post is about how to get started Python crawler, which has an answer,
python project crawler crawls Egg Jandan's sister chart-on
Grab a sister figure practice practicing. Web page URL format
Http://jandan.net/ooxx/page-1777#commentJust change the page number 1777 to analyze the source found that the sister figure has
First of all to know the use of Python agent login QQ mailbox Email, it is necessary to change their QQ mailbox settings. Here are two things to do: The mailbox opens SMTP function, obtains the authorization Code tutorial link.
After the
Python development environment
Slightly
Variable Nature
1. Variables in Python do not need to be defined, reused, used directly, and reused to store different types of values. 2. Variable naming follows C naming style.3. Sensitive to case
Python provides two formatting methods % and format. 1. Format Strings by%
The% format string of Python is similar to the printf () function in C language.
(1) format the output of a tuple.
(2) format the output of a dict.
2. Format a string by
1. Recently intend to use Xgboost to do Titanic exercises, toss for a while to do well. Below, the detailed process of their own problem-solving is recorded for reference.First tried the next anaconda from the Anaconda prompt to install xgboost, but
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