02 2021 档案
摘要:1. 首先安装这个库 pip install azure-storage-blob 2. 使用SAS URL可以直接连上某个container,然后以文件名来下载。 from azure.storage.blob import ContainerClient sas_url = "SAS URL"
阅读全文
摘要:输入命令,生成秘钥sshkey,引号中为注释,这里为自己注册gitlab的邮箱。 使用TortoiseGit,如果每次clone/push/pull都出现totoisegitplink的密码输入框,就需改下面这个配置 从totoisegitplink.exe 改成 ssh.exe 修改Tortois
阅读全文
摘要:@contextlib.contextmanager def getdb(): conn = pymysql.connect("url://server", "username", "password", "dbname", charset='utf8') cursor = conn.cursor(
阅读全文
摘要:""" :param delays: An iterable object the defines num of seconds between reties, also indicating num of retries. Default: retry 3 times, waiting 1/5/3
阅读全文
摘要:for %i in (*.png) do rename "%i" prefix_"%i" 这个命令遍历所有png文件,为它们加上前缀
阅读全文