2023年7月29日

摘要: https://zhuanlan.zhihu.com/p/537022317 网上的教程五花八门,好不容易找到一个顺利能用的,一套流程走下来就行。转载一下 阅读全文
posted @ 2023-07-29 11:42 SmatrChen 阅读(10) 评论(0) 推荐(0) 编辑

2022年11月8日

摘要: 爬取url网页里面所有的图片,把url填上就能用了,下面的自己看着改改进行筛选。 import requests import re import time import random import os def Find(string): # findall() 查找匹配正则表达式的字符串 st 阅读全文
posted @ 2022-11-08 21:52 SmatrChen 阅读(37) 评论(0) 推荐(0) 编辑

2022年10月29日

摘要: 如果无法打开 xlsx: pip uninstall xlrdpip install xlrd==1.2.0 check函数里面有个row_value数组,对应的是专业、学历等东西,print(row_value)一看就明白了,可以增减/更改这个函数查找指定的职位 # encoding:utf-8i 阅读全文
posted @ 2022-10-29 22:11 SmatrChen 阅读(117) 评论(0) 推荐(0) 编辑

2022年10月2日

摘要: 参考 https://matplotlib.org/stable/tutorials/colors/colormap-manipulation.html 是关于如何创建Colormap的示例代码,我的理解都写注释上了。 先介绍如何创建ListedColormap,再介绍如何创建 LinearSegm 阅读全文
posted @ 2022-10-02 11:53 SmatrChen 阅读(101) 评论(0) 推荐(0) 编辑

2022年9月21日

摘要: plt 报错像是下面这样子 File "C:\Users\abc\AppData\Local\Programs\Python\Python310\lib\site-packages\matplotlib\pyplot.py", line 191, in _get_required_interacti 阅读全文
posted @ 2022-09-21 22:03 SmatrChen 阅读(3474) 评论(0) 推荐(0) 编辑

2022年5月21日

摘要: 难得用上了直线,圆这些知识 以前总在想有了直角坐标为什么要学圆的极坐标,用了之后发现挺方便的 参考 https://deepinout.com/matplotlib/matplotlib-geometry/matplotlib-drawing-an-arc-diagram.html https:// 阅读全文
posted @ 2022-05-21 10:58 SmatrChen 阅读(224) 评论(0) 推荐(0) 编辑

2022年1月11日

摘要: temp = '' with open("strings.txt", "r", encoding='UTF-8') as f: list = f.readlines() s = ''.join(list).replace('\n', '').replace('\r', '') # s = s.rep 阅读全文
posted @ 2022-01-11 11:12 SmatrChen 阅读(61) 评论(0) 推荐(0) 编辑

2021年6月24日

摘要: 又签到失败了。看了别人博客的代码。https://blog.csdn.net/qq_49638570/article/details/116276005 构造法。 记 z = math.pow(10, c-1) x = math.pow(10, a-1)+math.pow(10, c-1) y =  阅读全文
posted @ 2021-06-24 14:23 SmatrChen 阅读(46) 评论(0) 推荐(0) 编辑

2021年6月22日

摘要: 构造。之前没接触过,不会做。 就是构造成这个样子就行了 print(a * b, a, a*(b + 1))#加减乘除合并同类项,是成立的,也可以像下面一样变化一下 print(a * (b + 5), a, a*(b + 6)) 有两个点要注意 1 如果B等于1,那么x, y, z都可以被b整除, 阅读全文
posted @ 2021-06-22 16:25 SmatrChen 阅读(74) 评论(0) 推荐(0) 编辑

2021年6月18日

摘要: import heapq q = [] n = int(input()) ar = list(map(int, input().split())) health= 0 cnt = 0 for v in ar: if v >= 0: cnt += 1 health += v else: if heal 阅读全文
posted @ 2021-06-18 16:40 SmatrChen 阅读(62) 评论(0) 推荐(0) 编辑