零零散散的python知识点
PythonFlask
一、PythonFlask是Python轻便级的开源WEB框架。
Python requests
Python requests is an elegent and simple HTTP library for Python.
Requests allows you to send HTTP/1.1 requests extrmely easily.There’s no need to manually add query strings to your URLs or to form-encode your POST data.Keep-alive and HTTP connection pooling are 100% automatic, thanks to urllib3?
### Passing Parameters In URLS
You often want to send some sort of data in the URLS’s query string.Requests allows you to procide these arguments like “www.xxx.org/get?key=val".The arguments after the question mark as a dictionary of strings as the params
keyword argument value at the second option.
As an example, if you wanted to pass key1=value1
and key2=value2
to www.xxx.org/get
, you would use the following code:
1 | payload = {"key1" : "value1", "key2" : "value2"} |
POST:
1 | payload = {"key1" : "value1", "key2" : "value2"} |
python re模块
1 | import re |
开发脚本必备——python命令行知识点
https://www.pyimagesearch.com/2018/03/12/python-argparse-command-line-arguments/
hashlib
1 | import hashlib |