netlink_kernel_create内核函数用于创建 内核socket用用户态通信 static inline struct sock * netlink_kernel_create(struct net *net, intunit, struct netlink_kernel_cfg *cf ...
分类:
Web程序 时间:
2020-06-24 23:26:13
阅读次数:
100
asyncio 快速使用 import asyncio async def request(url): print("request正在执行 %s"%url) print("request执行完成 %s"%url) # 创建实践循环 event_loop = asyncio.get_event_lo ...
分类:
其他好文 时间:
2020-06-24 23:22:54
阅读次数:
80
强化学习 Reinforce Learning 强化学习区别于机器学习的一点是,强化学习是来做决策的。根据环境的反馈,做出决策。 外界环境情况复杂,和环境的交互主要有 环境的状态 stat、智能体的动作、和对动作带来收益的评价 reward。 这里面涉及2个对象,agent 和 env。 agent ...
分类:
其他好文 时间:
2020-06-24 19:49:13
阅读次数:
65
catch必须从小类型异常的到大类型异常进行捕捉 catch(FileNotFoundException e){ e.printStackTrace();//输出异常信息 } finally为了保证某一资源一定会释放,所以finally语句中写释放资源的代码: public static void ...
分类:
编程语言 时间:
2020-06-24 19:31:18
阅读次数:
63
What is the sum of the digits of the number 21000 public static int sumDigits(int n) { int int_retVal = 0; int int_pow = (int) Math.pow(2, n); String ...
分类:
编程语言 时间:
2020-06-24 17:51:19
阅读次数:
53
原文:https://www.cnblogs.com/MRRAOBX/articles/6979479.html 由于List之间的相等的话,等于是把List的地址给赋值过去了,赋值后的List变化,会改变原有的List,并没有起到备份原始数据的作用,对于没有嵌套的List,可以采用遍历重新赋值的方 ...
##日志格式 '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for"' 首先把字 ...
分类:
其他好文 时间:
2020-06-24 14:24:57
阅读次数:
55
已剪辑自: https://www.jianshu.com/p/f1f2cd289205 是什么 LockSupport是一个线程阻塞工具类,所有的方法都是静态方法,可以让线程在任意位置阻塞,当然阻塞之后肯定得有唤醒的方法。 有什么用 接下面我来看看LockSupport有哪些常用的方法。主要有两类 ...
分类:
其他好文 时间:
2020-06-24 13:39:21
阅读次数:
84
1、标签实现新窗口打开 <router-link target="_blank" :to="{path:'/home',query:{id:'1'}}">新页面打开home页</router-link> 2、编程式导航: const {href} = this.$router.resolve({ n ...
分类:
其他好文 时间:
2020-06-24 12:28:26
阅读次数:
89