This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set http_proxy=socks5://127.0.0.1:1080 | |
set https_proxy=socks5://127.0.0.1:1080 | |
set ftp_proxy=socks5://127.0.0.1:1080 | |
curl ifconfig.me |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use mysql; | |
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '你的密码'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import json | |
post_data = """ | |
utf8: ✓ | |
authenticity_token: +3wLsKUPfQGQyMyTuJbJFmdIZZtaoS2QgB9NgSOr0rtoqE1/lmx0WOXpGRh3v+yoXeHeWCtA== | |
session[email_or_mobile_number]: 1147727180@qq.com | |
session[password]: 123456 | |
session[oversea]: false | |
captcha[validation][challenge]: 763dc07fa62749901039eead5a8211cf | |
captcha[validation][gt]: ec47641997d5292180681a247db3c92e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
在xadmin2+Django2.1+Python3.6.6中,出现render() got an unexpected keyword argument 'renderer'错误 | |
找到UEditor/widgets.py,167行 | |
def render(self, name, value, attrs=None): | |
# 修改为 | |
def render(self, name, value, attrs=None, renderer=None): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint = manager.create_api_blueprint(Person, methods=['GET', 'POST']) | |
app.register_blueprint(blueprint) |