摘要: 1、env_dict.keys(): 获取字段所有的键,比对字符是否有里面的键 env_key="9" env_dict = {"1": "dev", "2": "test", "3": "staging"} if env_key not in env_dict.keys(): raise Exce 阅读全文
posted @ 2022-10-12 01:00 凯宾斯基 阅读(50) 评论(0) 推荐(0) 编辑
摘要: Python类 基础笔记类 python工作遇到的小技能: https://www.cnblogs.com/kaibindirver/p/16379652.html python3工作遇到的小技能: https://www.cnblogs.com/kaibindirver/p/12577361.ht 阅读全文
posted @ 2022-03-29 14:15 凯宾斯基 阅读(61) 评论(0) 推荐(0) 编辑
摘要: http://pnr.sz.gov.cn/ywzy/fdtz/index.html 阅读全文
posted @ 2024-04-24 11:05 凯宾斯基 阅读(1) 评论(0) 推荐(0) 编辑
摘要: pmset -g sched,会发现如下所示:列出所有的计划事件 wakepoweron at 9:50AM every day Scheduled power events: [0] wake at 04/21/24 01:38:54 by 'com.apple.alarm.user-visibl 阅读全文
posted @ 2024-04-19 12:30 凯宾斯基 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 创建临时文件 磁盘空间满了 tmp目录分配的磁盘空间 磁盘是有分区的 比如 电脑的 c d e 盘 使用命令 df -h 可以查看对应目录下分配的磁盘大小 解决: 调整对应目录下磁盘的分配大小 阅读全文
posted @ 2024-04-10 18:04 凯宾斯基 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 下载地址: https://t00y.com/file/13114864-443796615 执行下面的命令重新安装即可 sudo pkgutil --forget com.cisco.pkg.anyconnect.vpn sudo pkgutil --forget com.cisco.pkg.an 阅读全文
posted @ 2024-04-07 23:02 凯宾斯基 阅读(23) 评论(0) 推荐(0) 编辑
摘要: from rest_framework import serializers from datetime import datetime class CustomDateTimeField(serializers.DateTimeField): def to_representation(self, 阅读全文
posted @ 2024-03-22 17:02 凯宾斯基 阅读(4) 评论(0) 推荐(0) 编辑
摘要: select CASE WHEN c1.id IS NOT NULL THEN c1.id ELSE c4.id END AS utm_source form table 阅读全文
posted @ 2024-03-20 16:33 凯宾斯基 阅读(2) 评论(0) 推荐(0) 编辑
摘要: from rest_framework import serializers class MyModelSerializer(serializers.ModelSerializer): class Meta: model = MyModel fields = ['field1', 'field2'] 阅读全文
posted @ 2024-03-14 13:18 凯宾斯基 阅读(2) 评论(0) 推荐(0) 编辑
摘要: import * as React from "react" // 接收参数 interface IProps{ work?:string } interface State { //名字可以随便起 date: string; // 定义 state 的结构 } export default cla 阅读全文
posted @ 2024-03-12 15:11 凯宾斯基 阅读(2) 评论(1) 推荐(0) 编辑
摘要: 数组传递 Hello.tsx import * as React from "react" #组件接收的变量 interface IProps{ title:string, age:number, work?:string #通过增加?确定他为可选项参数(调用时可以不传) } export defa 阅读全文
posted @ 2024-02-23 23:55 凯宾斯基 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 教程地址: https://www.bilibili.com/video/BV1FA411i7PD 项目创建和启动 cnpm install -g create-react-app npx create-react-app myapp --template typescript vscode插件 T 阅读全文
posted @ 2024-02-18 16:16 凯宾斯基 阅读(16) 评论(0) 推荐(0) 编辑
摘要: vue.config.js module.exports = { // 解决首页访问出现很多预加载文件的问题 chainWebpack: config => { // 移除 prefetch 插件 config.plugins.delete('prefetch') // 或者 // 修改它的选项: 阅读全文
posted @ 2024-02-17 02:00 凯宾斯基 阅读(28) 评论(0) 推荐(0) 编辑
摘要: vue.config.js module.exports = { configureWebpack:{ externals: { 'element-ui': 'ELEMENT', vue: 'Vue' }} //externals 配置来告诉 Webpack 不要打包它。 index.html <! 阅读全文
posted @ 2024-02-07 19:24 凯宾斯基 阅读(22) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/piaomiao_/article/details/126347476 System.setProperty('org.apache.commons.jelly.tags.fmt.timeZone','Asia/Shanghai') 阅读全文
posted @ 2024-01-13 03:08 凯宾斯基 阅读(41) 评论(0) 推荐(0) 编辑
摘要: https://vikyd.github.io/download-chromium-history-version/#/ 阅读全文
posted @ 2023-12-20 11:32 凯宾斯基 阅读(14) 评论(0) 推荐(0) 编辑
摘要: npm install --save vue-clipboard2 import VueClipBoard from 'vue-clipboard2' Vue.use(VueClipBoard) value即是要复制的内容 <button @click="seccendCopy">第二种方式复制</ 阅读全文
posted @ 2023-12-17 08:13 凯宾斯基 阅读(7) 评论(0) 推荐(0) 编辑
摘要: https://www.bilibili.com/video/BV1Z44y1K7Fj?p=7&vd_source=caabcbd2a759a67e2a3de8acbaaf08ea 阅读全文
posted @ 2023-11-27 13:43 凯宾斯基 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 1,路由组件的基本实现 使用React构建的单页面应用,要想实现页面间的跳转,首先想到的就是使用路由。在React中,常用的有两个包可以实现这个需求,那就是react-router和react-router-dom。本文主要针对react-router-dom进行说明。 安装: 首先进入项目目录,使 阅读全文
posted @ 2023-11-23 22:39 凯宾斯基 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 有2个老师咋那么实现每次轮询 teacherList=【1,2】 使用模运算即可 redis记录 0 0%2=0。得到下标 teacherList[0] redis记录 1 1%2=1. 得到下标 teacherList[1] redis记录 2 2%2=0. 得到下标 teacherList[0] 阅读全文
posted @ 2023-11-10 18:44 凯宾斯基 阅读(8) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/weixin_44856917/article/details/128818158 <template> <div> <!-- // 小图标 --> <a-button @click="enlarge">双击放大</a-button> <div id="m 阅读全文
posted @ 2023-10-23 18:16 凯宾斯基 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 官网: https://mermaid.js.org/syntax/flowchart.html 例子: https://blog.csdn.net/weixin_55508765/article/details/125735923 https://blog.csdn.net/weixin_4595 阅读全文
posted @ 2023-10-18 23:36 凯宾斯基 阅读(70) 评论(0) 推荐(0) 编辑
摘要: force index(ix_utmsource_signup_activated)强制走索引 FROM emb_xxxx a <if test="ixUtxxxSignup != null and ixUxxxSignup"> force index(ix_xxxx)</if> 阅读全文
posted @ 2023-10-12 22:56 凯宾斯基 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 一、介绍 https://zhuanlan.zhihu.com/p/458011982 二、视频 https://www.bilibili.com/video/BV1vg411h7ty/?spm_id_from=333.337.search-card.all.click&vd_source=caab 阅读全文
posted @ 2023-10-11 20:15 凯宾斯基 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 一、处理多个条件语句 all()方法 对于all()的一般例子如下: size = "lg" color = "blue" price = 50 # bad practice if size == "lg" and color == "blue" and price < 100: print("Ye 阅读全文
posted @ 2023-10-10 11:04 凯宾斯基 阅读(16) 评论(0) 推荐(0) 编辑
摘要: <template> <!-- class="server_a" --> <div class="a"> 服务列表 <div> <a-descriptions title="123" bordered> <a-descriptions-item label="服务列表"> Cloud Databas 阅读全文
posted @ 2023-09-18 15:01 凯宾斯基 阅读(15) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/evident/p/16700615.html 下面这种只隐藏了表头 tabkeColumns: [ { title: '姓名', dataIndex: 'name', key: 'name', colSpan:(route.path 'SIM'?1: 阅读全文
posted @ 2023-09-06 13:37 凯宾斯基 阅读(622) 评论(0) 推荐(0) 编辑
摘要: def round_3_1(): a1 = 2; a2 = 3; a3 = 1; sum = a1 + a2 + a3; for i in range(100): s = i % sum; if s < a1: print("1"); elif s < a1 + a2: print("2222"); 阅读全文
posted @ 2023-08-28 21:11 凯宾斯基 阅读(8) 评论(0) 推荐(0) 编辑
摘要: show-search后可开启搜索模式。 把搜索的值内容改为optionFilterProp=label 想同时搜索label和value两个字段把label设置成label="v.roleName+v.roleId" <a-select ref="select" v-model:value="va 阅读全文
posted @ 2023-08-22 16:23 凯宾斯基 阅读(25) 评论(0) 推荐(0) 编辑
摘要: <template> <div> <div style="background: white; height: 100%"> <div class="up_css"> <p> JMETER运行状态: <a-tag :color="this.jmeterStatus != true ? 'green' 阅读全文
posted @ 2023-08-04 21:39 凯宾斯基 阅读(34) 评论(0) 推荐(0) 编辑
摘要: table 组件 让选中的一项高亮显示 <template> <a-table ref="clientLeve_table" bordered size="middle" rowKey="id" :columns="clientLeve_columns" :dataSource="clientLev 阅读全文
posted @ 2023-08-04 03:14 凯宾斯基 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-08-03 17:57 凯宾斯基 阅读(188) 评论(0) 推荐(0) 编辑
摘要: https://www.runoob.com/react/react-state.html 1、状态和变量的使用 class Clock extends React.Component { // 变量存放--固定写法 constructor() { super(); this.state = {sh 阅读全文
posted @ 2023-07-19 17:42 凯宾斯基 阅读(26) 评论(0) 推荐(0) 编辑
摘要: <a-input v-model="edit.rampTime" type="number" oninput="value=value.replace('.', '',).replace('-', '',)" style="width: 220px" ></a-input> 阅读全文
posted @ 2023-07-10 20:35 凯宾斯基 阅读(687) 评论(0) 推荐(0) 编辑
摘要: {% autoescape off %} {{ variable }} {% endautoescape %} 当 ariable 传入的是html 会自动渲染出来 https://www.itguest.com/post/hidij2b8.html 阅读全文
posted @ 2023-07-09 01:56 凯宾斯基 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 通过vue key 实现,原理官方文档。所以当key 值变更时,会自动的重新渲染。 <template> <third-comp :key="menuKey"/> </template> <script> export default{ data(){ return { menuKey:1 } }, 阅读全文
posted @ 2023-07-07 19:44 凯宾斯基 阅读(5) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_40323256/article/details/111305117 https://www.likecs.com/show-307541080.html (这个可以) https://github.com/SheetJS/sheetjs 1. np 阅读全文
posted @ 2023-06-30 11:54 凯宾斯基 阅读(27) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/Tomonkey/article/details/125382817 安装addcomments pip install addcomments 给model字段添加verbose_name属性 age = models.SmallIntegerField 阅读全文
posted @ 2023-06-26 16:44 凯宾斯基 阅读(8) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/jianleking/article/details/118442697 json转xlsx文件导出 https://www.jianshu.com/p/7950d40ace40 json转流文件。和 流文件解析 https://www.jianshu.c 阅读全文
posted @ 2023-06-07 13:31 凯宾斯基 阅读(164) 评论(0) 推荐(0) 编辑
摘要: https://1x.antdv.com/components/cascader-cn/ <a-cascader ref="cascader" #钩子 :allowClear="false" style="height:30px" :options="depList" :load-data="loa 阅读全文
posted @ 2023-05-30 23:38 凯宾斯基 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 书接上回 https://www.cnblogs.com/kaibindirver/p/17381857.html import React from 'react' import '../css/01.css' export default class App extends React.Comp 阅读全文
posted @ 2023-05-08 21:10 凯宾斯基 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 操作数据要用 setStatus函数 操作数据要深拷贝再操作 常规展示 import React from 'react' export default class App extends React.Component { state={ list:[{"id":1,"text":"张三"},{" 阅读全文
posted @ 2023-05-08 15:10 凯宾斯基 阅读(22) 评论(0) 推荐(0) 编辑