创建: 2020/11/16 简介 运行环境(runtime)相关 静态变量 in InputStream的指针 out PrintStream的指针 实例方法 println print err PrintStream的指针 静态方法 void exit(int code) 0为正常 long c ...
分类:
编程语言 时间:
2020-11-20 12:15:26
阅读次数:
10
javascript判断是移动端还是pc端 //是移动端返回true,否则false function isMobile() { return (/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBro ...
分类:
移动开发 时间:
2020-11-20 12:13:54
阅读次数:
21
一、首先我们来设置IDEA中类的模板:(IDEA中在创建类时会自动给添加注释) 1、File-->settings-->Editor-->File and Code Templates-->Files 我们选择Class文件(当然你要设置接口的还也可以选择Interface文件) (1)${NAME ...
分类:
其他好文 时间:
2020-11-20 12:12:16
阅读次数:
7
env()和constant(),是IOS11新增特性,Webkit的css函数,用于设定安全区域与边界的距离,有4个预定义变量: safe-area-inset-left:安全区域距离左边边界的距离 safe-area-inset-right:安全区域距离右边边界的距离 safe-area-ins ...
分类:
Web程序 时间:
2020-11-20 12:07:27
阅读次数:
14
self.cr.execute(sql, ) # res = self.cr.fetchmany(1000) while True: res = self.cr.fetchmany(1000) print(len(res),res) if not res: break return res fetc ...
分类:
数据库 时间:
2020-11-20 12:06:46
阅读次数:
12
在windows下直接使用code . 可以打开vscode,发现mac不行,原来是缺少配置。 配置方法如下 1.在vscode中输入command+shift+p 2.输入command+shift+p 3. 点击提示Shell Command: Install ‘code’ command in ...
分类:
系统相关 时间:
2020-11-20 12:01:18
阅读次数:
17
v-show不能在<template>上使用 <button v-on:click="warn('Form cannot be submitted yet.', $event)">Submit</button> // ... methods: { warn: function (message, e ...
分类:
Web程序 时间:
2020-11-20 11:58:10
阅读次数:
15
yarn start yarn run v1.22.10$ cross-env APP_TYPE=site umi dev'cross-env' 不是内部或外部命令,也不是可运行的程序或批处理文件。error Command failed with exit code 1. 启动不成功,证明这个项目 ...
分类:
其他好文 时间:
2020-11-20 11:57:12
阅读次数:
5
7-2 天梯赛座位分配 (20分) #include <iostream> #include <cmath> using namespace std; int main() { int sets[100][10][10];//i个学校j个队伍第k个人的编号 int n,maxt = -1; int ...
分类:
其他好文 时间:
2020-11-20 11:55:43
阅读次数:
5
//将圆弧看成一段段的直线段,每个单元时间为dt //每一段路径长为 v1dt 和 v2dt //对于v2来说,存在径向速度vx(向外) 和 切向速度vy(绕圆) (vx^2 + vy^2 = v2^2) //又v1/R = w(角速度)= vy/r (r是运动过程中离圆心的距离)r属于[0, R] ...
分类:
其他好文 时间:
2020-11-20 11:47:20
阅读次数:
4