摘要:
quote(),unquote(),quote_plus(),unquote_plus(),urlencode() ,pathname2url(),url2pathname() urllib中还提供了一些辅助方法,用于对url进行编码、解码。url中是不能出现一些特殊的符号的,有些符号有特殊的用途。 阅读全文
随笔档案-2017年12月
PEP 3106 -- Revamping(改进) dict.keys(), .values() and .items()
2017-12-12 11:21 by 很大很老实, 278 阅读, 收藏,
摘要:
1. Abstract(摘要) This PEP proposes(建议) to change the .keys(), .values() and .items() methods of the built-in dict type to return a set-like or unordere 阅读全文
django学习随笔:ManagementUtility
2017-12-06 11:58 by 很大很老实, 968 阅读, 收藏,
摘要:
ManagementUtility类,位于django.core.management目录下的__init__.py文件。这个类,在其init中: def __init__(self, argv=None): self.argv = argv or sys.argv[:] #各个参数 self.pr 阅读全文
django学习随笔:execute_from_command_line
2017-12-06 10:30 by 很大很老实, 19979 阅读, 收藏,
摘要:
最简单的运行,往往是: python manage.py runserver 0.0.0.0:8000 进入最初的manage.py文件,我们看到: 这一句很简单的命令。而这个命令,来自: 这里的sys.argv,实际上是: ['manage.py', 'runserver', '0.0.0.0:8 阅读全文
浙公网安备 33010602011771号