摘要:
import sys builtin_str = strver = sys.versionis_py2 = int(ver[0]) == 2is_py3 = int(ver[0]) == 3 def to_native_string(string, encoding='ascii'): """Giv 阅读全文
摘要:
# encoding:utf-8class LookupDict(dict): """Dictionary lookup object.""" def __init__(self, name=None): self.name = name super(LookupDict, self).__init 阅读全文
摘要:
def iter_slices(string, slice_length): """Iterate over slices of a string.""" pos = 0 if slice_length is None or slice_length <= 0: slice_length = len 阅读全文
摘要:
# encoding:utf-8 import sslfrom requests import sessionsfrom requests import Requestfrom requests.adapters import HTTPAdapterfrom requests.packages.ur 阅读全文