python语言性能不适合在移动端做图色模拟开发,推荐用lua

python 复制代码
##python			--100次找色用时92120毫秒
from airscript.screen import FindColors
from time import time
t1=time()
for i in range(100):
    p=FindColors("888,888,#000000").rect(0,0,1080,2400).find()
t2=time()
print(f'用时{round((t2-t1)*1000)}毫秒')#	用时92120毫秒
##结论:python语言性能不适合在移动端做图色模拟开发
lua 复制代码
--lua			--100次找色用时3217毫秒
t1=time()
for i=1,100,1 do
    p=findColor({0,0,1080,2400,"888,888,#000000",95})
end
t2=time()
print("用时"..(t2-t1).."毫秒")--		用时3217毫秒


--结论:python语言性能不适合在移动端做图色模拟开发
相关推荐
爱睡懒觉的焦糖玛奇朵2 小时前
【从视频到数据集:焦糖玛奇朵的魔法工具使用说明】
人工智能·python·深度学习·学习·算法·yolo·音视频
yangshicong3 小时前
第11章:结构化输出与数据提取 —— 让 AI 直接返回你想要的数据格式
数据库·人工智能·redis·python·langchain·ai编程
言之。3 小时前
【Python】免费的中文 AI 配音方案
开发语言·人工智能·python
Warson_L3 小时前
python dict key详解
python
天天进步20153 小时前
Python全栈项目:从零手操一个高性能 API 网关
开发语言·python
Java面试题总结3 小时前
java高频面试题(2026最新)
java·开发语言·jvm·数据库·spring·缓存
苦逼的猿宝4 小时前
学生心理咨询评估系统
java·毕业设计·springboot·计算机毕业设计
隔窗听雨眠4 小时前
doctype、charset、meta如何控制整个渲染流水线
java·服务器·前端
安生生申4 小时前
使用pygame实现2048
开发语言·python·pygame
西安邮电大学5 小时前
SpringBean完整生命周期
java·spring