摘要:
hb@hb-pc ~ $ virtualenv --python=python3 --no-site-packages test Running virtualenv with interpreter /usr/bin/python3 Using base prefix '/usr' New python executable in test/bin/python3 Also creatin... 阅读全文
摘要:
1、字典创建 zip函数创建 dict.formkeys创建字典 fromkeys(iterable, value=None, /) method of builtins.type instance Returns a new dict with keys from iterable and val 阅读全文
摘要:
1、 S.partition(sep) -> (head, sep, tail) Search for the separator sep in S, and return the part before it, the separator itself, and the part after it 阅读全文
摘要:
maketrans 和 translate的用法(配合使用) 下面是python的英文用法解释 maketrans(x, y=None, z=None, /) Return a translation table usable for str.translate(). If there is onl 阅读全文
摘要:
1、S.isdecimal() -> bool Return True if there are only decimal characters in S, False otherwise. 字符串如果是十进制,返回True。 2、S.isdigit() -> bool Return True if 阅读全文