当前位置:网站首页>【转发】查看lua中userdata的方法
【转发】查看lua中userdata的方法
2020-11-06 21:09:00 【蟑螂恶霸L】
local function printMetaTableFun(t)
local rs_tb={}
local function tmp(t)
if t then
for _val, _val_type in pairs(t) do
if type(_val_type)~="userdata" then
if not string.find(_val,"_") then
table.insert(rs_tb,_val)
end
end
end
local ft=getmetatable(t)
if ft then
tmp(ft)
end
end
end
tmp(getmetatable(t))
table.sort(rs_tb)
local rs_str=""
for i=1,#rs_tb do
rs_str=rs_str .. rs_tb[i] .. "\n"
end
print(rs_str)
end
printMetaTableFun(touch)
版权声明
本文为[蟑螂恶霸L]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/3983177/blog/4479871
边栏推荐
- I'm afraid that the spread sequence calculation of arbitrage strategy is not as simple as you think
- NLP model Bert: from introduction to mastery (1)
- [event center azure event hub] interpretation of error information found in event hub logs
- TensorFlow中的Tensor是什么?
- Thoughts on interview of Ali CCO project team
- 6.1.2 handlermapping mapping processor (2) (in-depth analysis of SSM and project practice)
- vue-codemirror基本用法:实现搜索功能、代码折叠功能、获取编辑器值及时验证
- Uncle Bob: the software architecture is similar to a house. Object oriented is the structure of the house, and the water pipe is functional programming
- Discussion on the development practice of aspnetcore, a cross platform framework
- The data of pandas was scrambled and the training machine and testing machine set were selected
猜你喜欢

一篇文章带你了解CSS 分页实例

DRF JWT authentication module and self customization

C + + and C + + programmers are about to be eliminated from the market

Unity性能优化整理

Python saves the list data

Custom function form of pychar shortcut key

ES6学习笔记(五):轻松了解ES6的内置扩展对象

Python download module to accelerate the implementation of recording

一篇文章带你了解CSS3圆角知识

If PPT is drawn like this, can the defense of work report be passed?
随机推荐
The dynamic thread pool in Kitty supports Nacos and Apollo multi configuration centers
JVM memory area and garbage collection
vue任意关系组件通信与跨组件监听状态 vue-communication
Who says cat can't do link tracking? Stand up for me
Python + appium automatic operation wechat is enough
6.2 handleradapter adapter processor (in-depth analysis of SSM and project practice)
Multi classification of unbalanced text using AWS sagemaker blazingtext
C#和C/C++混合编程系列5-内存管理之GC协同
Python saves the list data
I'm afraid that the spread sequence calculation of arbitrage strategy is not as simple as you think
axios学习笔记(二):轻松弄懂XHR的使用及如何封装简易axios
一篇文章带你了解CSS3圆角知识
vue-codemirror基本用法:实现搜索功能、代码折叠功能、获取编辑器值及时验证
Classical dynamic programming: complete knapsack problem
Discussion on the development practice of aspnetcore, a cross platform framework
keras model.compile Loss function and optimizer
Python filtering sensitive word records
前端未來趨勢之原生API:Web Components
Custom function form of pychar shortcut key
Natural language processing - BM25 commonly used in search