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
We can share some information about fishing, and how to use the Lakespy. If you still have problem, please send me email to cenxudong@126.com, and cal ...
分类:
其他好文 时间:
2021-06-11 18:42:42
阅读次数:
0
1 可变数据类型:字典dict、列表list、集合set 2 不可变数据类型:字符串string、元组tuple 3 数字:整数int、小数float、布尔bool 3.1 随机数 3.1.1 默认输出0到1之间的数: 1 import random 2 print(random.random()) ...
分类:
编程语言 时间:
2021-06-11 18:21:34
阅读次数:
0
一个新的需求,需要在shell脚本中退出当前登录用户 方式一 #!/bin/bash I=$(tty |awk -F '/dev/' '{print $2}') pkill -kill -t $I 方式二 #!/bin/bash I=$(who am i|awk '{print $2}') pkil ...
分类:
系统相关 时间:
2021-06-11 17:45:51
阅读次数:
0
numpy库的基本操作 import numpy as np import math #创建数组 a=np.arange(10) print(a) print(type(a)) #对数组里面的元素开平分 b=[3,4,9] #定义结果列表 result=[] #遍历列表 for i in b: pr ...
分类:
编程语言 时间:
2021-06-10 18:30:37
阅读次数:
0
https://aweme.snssdk.com/luckycat/aweme_fission/page/share_invite/?u_code=MjgxODk2OTExMTIwNTUy&aid=2329&landing_channel=invite_friend_page_qrcode&ente ...
分类:
其他好文 时间:
2021-06-10 18:28:43
阅读次数:
0
PrintStream类 <1> 基本概念 java.io.PrintStream:用于更加方便地打印各种数据内容 <2> 常用的方法 方法声明 功能介绍 PrintStream (OutputStream out) 根据参数指定的引用来构造对象 void print(String s) 用于将参数 ...
分类:
编程语言 时间:
2021-06-10 18:15:46
阅读次数:
0
简介 ES8引入了SharedArrayBuffer和Atomics,通过共享内存来提升workers之间或者worker和主线程之间的消息传递速度。 本文将会详细的讲解SharedArrayBuffer和Atomics的实际应用。 Worker和Shared memory 在nodejs中,引入了 ...
分类:
其他好文 时间:
2021-06-10 18:13:23
阅读次数:
0
#include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 // 运行程序输入测试时,可以把N改小一些输入测试 typedef struct student { int id; /*学生学号 */ char name[20] ...
分类:
其他好文 时间:
2021-06-10 18:03:42
阅读次数:
0
1、进入 applications cd /usr/share/applications 2、创建文件 sudo vim idea.desktop [Desktop Entry] Encoding=UTF-8 Version=1.0 Name=IntelliJ IDEA GenericName=Ja ...
分类:
系统相关 时间:
2021-06-10 17:51:51
阅读次数:
0