12 2021 档案
摘要:
split使用多个分隔符分割字符串 python内建的split()函数只能使用单个分隔符 text = '你好!吃早饭了吗?再见。' text.split('!') Out: ['你好', '吃早饭了吗?再见。'] re模块的split()函数可以使用多个分隔符对句子进行分割,其中不同的分隔符要用
阅读全文

摘要:
import pandas as pd dataframe = pd.read_csv("merge_yield.csv") a = dataframe.iloc[:,1:] a ProductID LotID Mark LotID Pass Fail Yield Bin# 0 1460A AL45
阅读全文

摘要:
电脑防止锁屏脚本 Add-Type -AssemblyName System.Windows.Forms # 你可以根据你的实际情况修改间隔时间 New-Variable -name INTERVAL -Value (60 * 3) -Option Constant -Description 'fo
阅读全文

摘要:
Matplotlib Note 创建一个图 plt.figure() 轴的操作 plt.xlabel("x'slabel")#x轴上的名字 plt.xticks(rotation=20) #设置x轴旋转 plt.ylabel("y's;abel")#y轴上的名字 显示中文 plt.rcParams[
阅读全文

摘要:
x轴显示文字被省略显示 bar.set_global_opts( xaxis_opts=opts.AxisOpts(axislabel_opts={ "interval": "0", # 全部显示 "rotate": "-30"}), # 加个角度 ) x轴的文字虽然倾斜了但是还是显示不全 grid
阅读全文
