02 2022 档案

摘要:love.py # 示例代码 from wordcloud import WordCloud from PIL import Image import numpy as np import matplotlib.pyplot as plt import jieba # 打开文本 with open( 阅读全文
posted @ 2022-02-28 15:14 豆浆D 阅读(575) 评论(0) 推荐(0) 编辑
摘要:docker-compose-run #!/bin/bash function tips2p() { echo "Second parameter please choose one below:" echo "`ls /apps/issoc-config/dcow/ |grep -v $0|gre 阅读全文
posted @ 2022-02-24 15:37 豆浆D 阅读(528) 评论(0) 推荐(0) 编辑
摘要:使用方法: 参数名 含义 target 线程调用的对象,就是目标函数 name 为线程起个名字 args 为目标函数传递实参,元组 kwargs 为目标函数关键字传参,字典 import threading # 最简单的线程程序 def worker(age): print("I'm working 阅读全文
posted @ 2022-02-21 13:53 豆浆D 阅读(38) 评论(0) 推荐(0) 编辑
摘要:一张图解释 df = pd.read_excel('test.xlsx', index_col='NAME') # df.loc('卖家登录')['IS_EXE'] 就不是唯一 阅读全文
posted @ 2022-02-17 15:19 豆浆D 阅读(186) 评论(0) 推荐(0) 编辑
摘要:问题表现 npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'l 阅读全文
posted @ 2022-02-14 14:41 豆浆D 阅读(8582) 评论(0) 推荐(0) 编辑
摘要:安装 pip install watchdog 在python中文件监控主要有两个库,一个是pyinotify ( https://github.com/seb-m/pyinotify/wiki ),一个是watchdog(http://pythonhosted.org/watchdog/)。pyi 阅读全文
posted @ 2022-02-10 14:15 豆浆D 阅读(416) 评论(0) 推荐(0) 编辑
摘要:代码 x = [1,1,2,2,3,2,3,4,5,6] y = [1,2,3,4,5] z = x + y print(z) # z = x - y # 会报错,不支持""-"操作 # print(z) sx = set(x) # 可以转集合,但会去除重复元素 sy = set(y) print( 阅读全文
posted @ 2022-02-07 10:22 豆浆D 阅读(136) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示