摘要:
from random import randint from PIL import Image class SearchEntry(): def __init__(self, x, y, g_cost, f_cost=0, pre_entry=None): self.x = x self.y = 阅读全文
摘要:
python获取图片中某个像素的坐标 模糊查询 from PIL import Image def zhaose(pic,r1,g1,b1): img = Image.open(pic) pixels = img.load() width, height = img.size xy={}; xy[' 阅读全文
摘要:
-- 测试协程 local thread = require('thread') --处理协程的错误 local thread_id = thread.create(function() nLog('2再运行协程') nLog('这里触发了就会继续切换到主线程 不会因为延迟堵塞') msleep(3 阅读全文
摘要:
local dituxylist={{x=2,y=2},{x=3,y=3}} print(dituxylist[1].x); 对象 数组 阅读全文
摘要:
触摸精灵教程1 1 先注册账号 这里需要注意有2个账号!! 1个是开发平台的 1个是手机上的安卓触摸精灵的账号 2个不一样的 2个账号注册好 然后进入开发平台 绑定安卓触摸精灵的账号就可以了 3 雷电模拟器 要设置桥接模式 网络设置下 就好 4 打开TS studio编辑 main.lua 写个di 阅读全文
摘要:
PHP list输出key value的方法 <?php $ss=array(); $ss['xx']=3; $ss['yy']=4; list($xx,$yy)=array_values($ss); print_r($xx); ?> 阅读全文
摘要:
PHP创建临时cookie的方法 cookie('aaaaaaaa', 'xxxxxxxxxxxx', ''); 不设置时间就可以了 接下来自己实现session cookie都是服务端创建 返回到浏览器保存的 然后浏览器每次请求都带这个cookie 服务端可以用redis 一临时cookie为ke 阅读全文
摘要:
给别的域名添加cookie的方法 自己弄个本地服务器 然后设置顶级域名对应的二级域名 就行了 二级域名可以设置顶级域名的cookie 阅读全文
摘要:
pixijs mask 注意的问题 黑色 透明都不是显示的 其他颜色都是显示的区域 阅读全文
摘要:
百里守约100%瞬狙 from pykeyboard import PyKeyboard import time k = PyKeyboard() k.press_key(k.space) k.release_key(k.space) time.sleep(0.5); k.press_key('w' 阅读全文