1.创建一个util.js文件 export default { getValueFromEvent:(e)=>{ return e.target.value.replace(/(^\s*)|(\s*$)/g, ''); } } 2.引入使用 getValueFromEvent={util.getV ...
分类:
其他好文 时间:
2021-06-11 18:53:28
阅读次数:
0
yaml文件读取: def read_yaml(): with open("config.yaml", encoding='utf-8') as f: data = yaml.load(f.read(), Loader=yaml.FullLoader) print(data) ...
分类:
编程语言 时间:
2021-06-11 18:50:54
阅读次数:
0
实验任务1 // P280例8.15 // 对教材上的程序作了微调整,把输出学生信息单独编写成一个函数模块 // 打印不及格学生信息和所有学生信息程分别调用 #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 // ...
分类:
其他好文 时间:
2021-06-11 18:27:55
阅读次数:
0
使用golang每天给女朋友发送微信信息 我们使用github.com/eatMoreApple/openwechat就可以使用golang操作微信发送消息了 package main import ( "fmt" "github.com/eatMoreApple/openwechat" "time ...
分类:
微信 时间:
2021-06-11 18:27:23
阅读次数:
0
1)字符串操作 strcpy(p, p1) 复制字符串 strncpy(p, p1, n) 复制指定长度字符串 strcat(p, p1) 附加字符串 strncat(p, p1, n) 附加指定长度字符串 strlen(p) 取字符串长度 strcmp(p, p1) 比较字符串 strcasecm ...
分类:
其他好文 时间:
2021-06-11 18:24:54
阅读次数:
0
#include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 // 运行程序输入测试时,可以把N改小一些输入测试 typedef struct student { int id; /*学生学号 */ char name[20] ...
分类:
其他好文 时间:
2021-06-11 18:22:43
阅读次数:
0
open -n /Applications/Google\ Chrome.app/ --args --disable-web-security --flag-switches-begin --disable-features=SameSiteByDefaultCookies,CookiesWitho ...
分类:
其他好文 时间:
2021-06-11 18:20:14
阅读次数:
0
一、防火墙 systemctl status firewalld.service # 查看防火墙状态 systemctl stop firewalld.service # 关闭防火墙 systemctl disable firewalld.service # 禁用防火墙 二、Selinux vi / ...
分类:
系统相关 时间:
2021-06-11 18:01:38
阅读次数:
0
docker run -di --name kaka-rabbit -e RABBITMQ_DEFAULT_USER=admin -e RABBITMQ_DEFAULT_PASS=admin -p 15672:15672 -p 5672:5672 -p 25672:25672 -p 61613:61 ...
分类:
其他好文 时间:
2021-06-11 17:46:06
阅读次数:
0
1、创建精灵对象和精灵组 import random import pygame from pygame.locals import * class Player(pygame.sprite.Sprite): # 继承pygame.sprite.Sprite精灵对象 def __init__(sel ...
分类:
其他好文 时间:
2021-06-10 18:44:12
阅读次数:
0