小陆同学

python 中文名:蟒蛇,设计者:Guido van Rossum

导航

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 23 下一页

2020年8月28日 #

linux--远程连接windows并执行cmd命令

摘要: 1、在Linux服务器上的处理 首先需要在Linux中安装python,并且安装pywinm库。安装之前首先需要安装isodate和xmlwitch两个依赖包,在安装pywinrm。下面是安装时用到的命令。 pip install isodate pip install xmlwitch pip i 阅读全文

posted @ 2020-08-28 20:29 小陆同学 阅读(3392) 评论(0) 推荐(0) 编辑

ERROR: error pulling image configuration

摘要: docker pull镜像时报错: ERROR: error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/7 阅读全文

posted @ 2020-08-28 20:22 小陆同学 阅读(4356) 评论(0) 推荐(1) 编辑

git--不小心推代码到master之后,怎么办?

摘要: 获取commit id git log 确定你要回滚到哪个版本 git reset --hard commit_id git push origin master --force 成功! 报错:remote: GitLab: You are not allowed to force push cod 阅读全文

posted @ 2020-08-28 20:20 小陆同学 阅读(1639) 评论(0) 推荐(1) 编辑

python--向钉钉群发送消息(亲测可用)

摘要: 向钉钉群发送文本消息 def sendDingDing(self,text): print(text) headers = {'Content-Type': 'application/json'} webhook = "https://oapi.dingtalk.com/robot/send?acc 阅读全文

posted @ 2020-08-28 20:16 小陆同学 阅读(2691) 评论(0) 推荐(0) 编辑

python--注册钉钉回调事件(亲测可用)

摘要: 钉钉API文档:https://ding-doc.dingtalk.com/doc#/serverapi2/skn8ld 钉钉有回调事件流程,有哪些回调?比如:通讯录回调、审批回调等等,拿通讯录回调来说,就是当你公司组织架构发生变动时,会自动触发你自己注册的回调地址,然后根据回调信息做一些自定义的处 阅读全文

posted @ 2020-08-28 20:12 小陆同学 阅读(2647) 评论(2) 推荐(0) 编辑

2020年5月27日 #

npm--安装taro遇到的问题

摘要: cnpm install -g @tarojs/cli 全局安装完taro之后应该直接就可以使用taro了,但是在docker容器里安装taro之后执行taro bash: taro: command not found # 在网上查分别npm cache verify和cnpm cache ver 阅读全文

posted @ 2020-05-27 21:54 小陆同学 阅读(3451) 评论(0) 推荐(0) 编辑

关于报错ImportErrorNomodulenamedCrypto Cipher

摘要: # from Crypto.Cipher import AES ImportErrorNomodulenamedCrypto Cipher 在遇到这个问题之后,普遍的方法去安装对应的模块就可以 pip install crypto pip install pycrypto 在经过安装之后还是奇葩报错 阅读全文

posted @ 2020-05-27 21:47 小陆同学 阅读(1986) 评论(0) 推荐(0) 编辑

python--生成二维码娱乐一下(转发)

摘要: import qrcode # 复杂的生成二维码 def make_code(text): # version是二维码的尺寸,数字大小决定二维码的密度 error_correction:是指误差 # box_size:参数用来控制二维码的每个单元(box)格有多少像素点 # border: 参数用控 阅读全文

posted @ 2020-05-27 21:43 小陆同学 阅读(181) 评论(0) 推荐(0) 编辑

python--发送文本消息、链接消息带图片到钉钉告警群

摘要: 发送文本消息 def sendDingDing(self,text): headers = {'Content-Type': 'application/json'} webhook = "https://oapi.dingtalk.com/robot/send?access_token="+self 阅读全文

posted @ 2020-05-27 21:40 小陆同学 阅读(1465) 评论(0) 推荐(0) 编辑

python--字符串类型的列表转换成列表类型

摘要: from ast import literal_eval apply_type = str([1,2,3]) new_list = literal_eval(apply_type) print(new_list) print(type(new_list)) # 此时的new_list的类型为list 阅读全文

posted @ 2020-05-27 21:33 小陆同学 阅读(3387) 评论(0) 推荐(0) 编辑

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 23 下一页