上一页 1 2 3 4 5 6 7 8 9 ··· 42 下一页
摘要: 1. 首先安装这个库 pip install azure-storage-blob 2. 使用SAS URL可以直接连上某个container,然后以文件名来下载。 from azure.storage.blob import ContainerClient sas_url = "SAS URL" 阅读全文
posted @ 2021-02-24 15:46 爱知菜 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 输入命令,生成秘钥sshkey,引号中为注释,这里为自己注册gitlab的邮箱。 使用TortoiseGit,如果每次clone/push/pull都出现totoisegitplink的密码输入框,就需改下面这个配置 从totoisegitplink.exe 改成 ssh.exe 修改Tortois 阅读全文
posted @ 2021-02-22 17:47 爱知菜 阅读(35) 评论(0) 推荐(0) 编辑
摘要: @contextlib.contextmanager def getdb(): conn = pymysql.connect("url://server", "username", "password", "dbname", charset='utf8') cursor = conn.cursor( 阅读全文
posted @ 2021-02-04 13:48 爱知菜 阅读(19) 评论(0) 推荐(0) 编辑
摘要: """ :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 阅读全文
posted @ 2021-02-01 18:43 爱知菜 阅读(28) 评论(0) 推荐(0) 编辑
摘要: for %i in (*.png) do rename "%i" prefix_"%i" 这个命令遍历所有png文件,为它们加上前缀 阅读全文
posted @ 2021-02-01 16:28 爱知菜 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 零售行业,特别是快销行业的O2O最近很火,本文讲一下O2O中最经典的模式“O2O下行”即线上to线下的一些总结。 O2O下行(全称:Online to Offline)就是指线上 下单,线下门店来完成销售的一种模式,从上到下,所以叫下行。反过来就是上行(Offline to Online)。 下行又 阅读全文
posted @ 2021-01-15 16:58 爱知菜 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 最近在看Hanlp作者的一本书,讲到了感知机,这里简单说下。 感知机本质就是一个线性函数,很像一个神经网络里的一个神经元。不同点是神经元有一个激活函数,而感知机就是通过结果的正负来做二分类。 感知机的损失函数,或者说惩罚函数,就是对于误分类的样本,希望他们的感知结果的绝对值总和越小越好。 选择这个惩 阅读全文
posted @ 2021-01-07 11:59 爱知菜 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 在代码中编辑自定义词典 CustomDictionary = JClass("com.hankcs.hanlp.dictionary.CustomDictionary") CustomDictionary.add("代行", "nnt 1999") CustomDictionary.add("李紫文 阅读全文
posted @ 2020-12-30 19:20 爱知菜 阅读(10) 评论(0) 推荐(0) 编辑
摘要: Java 8 takes more than 1/64th of your physical memory for your Xmssize (Minimum HeapSize) and less than 1/4th of your physical memory for your -Xmxsiz 阅读全文
posted @ 2020-12-15 15:20 爱知菜 阅读(103) 评论(0) 推荐(0) 编辑
摘要: grpc 是一个 google开源的 rpc库,支持多种语言,本文讲python版本的grpc。 安装: pip install grpcio pip install grpcio-tools 开发顺序: 1. 首先要定义prototype文件。定义好rpc的函数、输入参数,返回参数。 示例如下: 阅读全文
posted @ 2020-12-07 16:15 爱知菜 阅读(104) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 42 下一页