类中多个Synchronized方法 下面给出一个例子,说明一个class中有两个方法synchronized的情况。它们互相阻挡的用法和上面的“一个方法有synchronized”的情况是一样的。例1.9.5:class A { public synchronized void f1() { fo ...
分类:
编程语言 时间:
2021-04-30 12:36:54
阅读次数:
0
有时候需要做个某些服务的状态监控,用钉钉机器人发通知挺方便的。可以用shell脚本配合crontab检测状态,检测到异常就调用python脚本发起告警。 python内容 此处用的python3,需要先安装requests模块。pip install requests -i https://mirr ...
分类:
编程语言 时间:
2021-04-30 12:35:08
阅读次数:
0
https://leetcode-cn.com/problems/frog-jump/ 思路: 待补充 class Solution { private Boolean[][] rec; public boolean canCross(int[] stones) { int n = stones.l ...
分类:
其他好文 时间:
2021-04-30 12:33:41
阅读次数:
0
1.引用 npm install vue-paypal-checkout 2.定义paypal.js import Vue from 'vue' import PayPal from 'vue-paypal-checkout' Vue.component('paypal-checkout', Pay ...
分类:
Web程序 时间:
2021-04-30 12:32:47
阅读次数:
0
//参考与https://blog.csdn.net/weixin_44498318/article/details/106645018 ...
分类:
其他好文 时间:
2021-04-30 12:31:30
阅读次数:
0
任务1 #include <stdio.h> long long fun(int n); // 函数声明 int main() { int n; long long f; while(scanf("%d", &n) != EOF) { f = fun(n); // 函数调用 printf("n = ...
分类:
其他好文 时间:
2021-04-30 12:31:08
阅读次数:
0
1,计算0到100之间奇数和偶数的和 public static void main(String[] args) { //练习,计算0到100之间的奇数和偶数的和 int oddsum=0;//奇数 int evensum=0;//偶数 for(int i=0;i<=100;i++){ if(i% ...
分类:
其他好文 时间:
2021-04-30 12:27:04
阅读次数:
0
某天,debian日常apt更新,提示错误 W: 校验数字签名时出错。此仓库未被更新,所以仍然使用此前的索引文件。GPG 错误:https://mirrors.aliyun.com/kubernetes/apt kubernetes-xenial InRelease: 由于没有公钥,无法验证下列签名 ...
分类:
其他好文 时间:
2021-04-30 12:24:27
阅读次数:
0
同时可参考博客:https://www.cnblogs.com/hellokuangshen/p/12468522.html ...
分类:
编程语言 时间:
2021-04-30 12:22:02
阅读次数:
0
定时获取远程文件并存储更新记录 这类似一个备份功能, 只会保存更新, 比如后端的接口文档经常变, 然后可以用此工具来保存更新记录. new Promise(async () => { setInterval(() => { // const fileUrl = `http://172.16.203. ...
分类:
其他好文 时间:
2021-04-30 12:21:26
阅读次数:
0