play any_errors_fatal:强制任何主机上的任何未处理任务错误传播到所有主机并结束播放。become:布尔值,用于控制是否在任务执行时适用权限提升。become_flags:当变为True的时候,要传递给权限提升程序的标志。become_method:适用那种权限升级方法(例如sud ...
分类:
其他好文 时间:
2020-04-07 22:08:10
阅读次数:
191
cc.Class({ extends: cc.Component, properties: { tiledMap:cc.TiledMap }, // LIFE-CYCLE CALLBACKS: onLoad () { //开启物理效果 cc.director.getPhysicsManager(). ...
分类:
其他好文 时间:
2020-04-05 00:13:50
阅读次数:
365
使用 synchronized关键字是并发编程中线程同步的常用手段之一,synchronized是悲观锁,其作用有三个: 互斥性:确保线程互斥的访问同步代,锁自动释放,多个线程操作同个代码块或函数必须排队获得锁,可见性:保证共享变量的修改能够及时可见,获得锁的线程操作完毕后会将所数据刷新到共享内存区 ...
分类:
编程语言 时间:
2020-04-04 21:10:57
阅读次数:
98
1.re.match函数 re.match 尝试从字符串的起始位置匹配一个模式,如果不是起始位置匹配成功的话,match()就返回none。 函数语法: re.match(pattern, string, flags=0) 1 import re 2 3 ret = re.match("http", ...
分类:
编程语言 时间:
2020-04-03 13:39:08
阅读次数:
80
import java.util.regex.*; public class RegPlus{ public static void main(String[] args){ //group(); //reference(); flags(); } //non-capturing groups pr ...
分类:
其他好文 时间:
2020-04-02 21:08:43
阅读次数:
65
1 #include "opencv2/opencv.hpp" 2 3 #define WINDOW_NAME "[程序窗口]" 4 5 6 void on_MouseHandle(int event, int x, int y, int flags, void* param); 7 void Dr ...
分类:
其他好文 时间:
2020-04-02 16:03:32
阅读次数:
73
Shellcode 定义 是一段可注入的指令(opcode),可以在被攻击的程序内运行。 特点 短小精悍,灵活多变,独立存在,无需任何文件格式的包装,因为shellcode直接操作寄存器和函数,所以opcode必须是16进制形式。因此也不能用高级语言编写shellcode。在内存中运行,无需运行在固 ...
CreateThread创建线程,成功返回线程句柄,失败返回NULL HANDLE CreateThread( LPSECURITY_ATTRIBUTES lpThreadAttributes, //指向SECURITY_ATTRIBUTESX形态的结构指针。NULL为使用默认安全性 DWORD d ...
分类:
编程语言 时间:
2020-03-31 19:19:22
阅读次数:
56
import tensorflow as tf FLAGS = tf.app.flags.FLAGS tf.app.flags.DEFINE_string("captcha_dir", "./tfrecords", "验证码数据路径") tf.app.flags.DEFINE_integer("ba ...
分类:
其他好文 时间:
2020-03-31 01:26:27
阅读次数:
73
import tensorflow as tf FLAGS = tf.app.flags.FLAGS tf.app.flags.DEFINE_string("job_name", " ", "启动服务的类型ps or worker") tf.app.flags.DEFINE_integer("tas ...
分类:
其他好文 时间:
2020-03-31 00:56:07
阅读次数:
82