1 import Home from '../views/Home.vue' { path: '/', name: 'Home', component: Home }, 2 { path: '/about', name: 'About', component: () => import('../vi ...
分类:
其他好文 时间:
2021-04-16 12:13:05
阅读次数:
0
<body> <div id="app"> <input type="text" v-model="num"/> <h1>{{name}},你真的强,有{{num}}个人为他点赞。</h1> </div> <script src="./node_modules/vue/dist/vue.js"></ ...
分类:
其他好文 时间:
2021-04-16 12:11:07
阅读次数:
0
dict1={'name':'Lara','age':18} #判断键在不在字典中 for one in dict1: if 'name' in dict1:#或dict1.keys() print('key在字典中!') break #判断值在不在字典中 for one in dict1: if ...
分类:
编程语言 时间:
2021-04-16 12:04:54
阅读次数:
0
模拟cpu使用率 脚本: 可以将1个cpu-core打满 k.c #include <stdlib.h> int main() { while(1); return 0; } gcc -o out k.c ./out 查看top可以看到将1个cpu-core打满,可以根据需要,并发启动多个进程将多个 ...
分类:
其他好文 时间:
2021-04-16 12:03:28
阅读次数:
0
设置仓库 更新 apt 包索引。 $ sudo apt-get update 安装 apt 依赖包,用于通过HTTPS来获取仓库: $ sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent ...
分类:
系统相关 时间:
2021-04-16 11:59:52
阅读次数:
0
cat <<EOF > kubernetes.repo[kubernetes]name=Kubernetesbaseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64enabled=1gpgcheck=1 ...
分类:
Web程序 时间:
2021-04-16 11:56:03
阅读次数:
0
模拟订阅报纸: 消费者与出版社之间没有联系,甚至互不相识,但报纸却从出版社到达了消费者手中,发布-订阅模式就是通过模拟订阅报纸,实现消息在模块之间的传递、模块与模块之间的调用。 Python样例 from blinker import Namespace # 创建一个Signal,其名为test m ...
分类:
其他好文 时间:
2021-04-16 11:41:15
阅读次数:
0
断开式查询(没有打开和关闭) 1、连接字符串 string str = "server=.;database=数据库名称;uid=sa;pwd=123"; 2、创建连接对象 SqlConnection sqlcon = new SqlConnection(str); ```C# ### 3、sql语 ...
分类:
其他好文 时间:
2021-04-15 12:46:29
阅读次数:
0
1、在任意位置建一个空文件夹; 2、打开vscode,定位到刚才新建的文件夹; 点击左下角位置 弹出 3、输入npm install vue 展开刚才新建的项目 4、测试一下项目是否搭建成功; 新建一个index.html; 输入感叹号,直接回车; 就生成了html模板 新建一个vue小demo; ...
分类:
其他好文 时间:
2021-04-15 12:43:16
阅读次数:
0
只能用指定字符,实现函数功能 /* * CS:APP Data Lab * * <Please put your name and userid here> * * bits.c - Source file with your solutions to the Lab. * This is the ...
分类:
移动开发 时间:
2021-04-15 12:42:58
阅读次数:
0