From c33e5029df0c1b74a2f232cec3e24d3189df7898 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Wed, 25 Aug 2021 01:55:41 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=96=B0=E5=B0=81=E8=A3=85=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E5=8F=B0=E9=9D=9Esudomode=E7=9A=84print=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E5=B9=B6=E6=94=AF=E6=8C=81=E5=A4=9A=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E5=88=86=E8=A1=8C=E8=BE=93=E5=87=BA=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=9D=9Esudomode=E4=B8=8B=E6=8E=A7=E5=88=B6=E5=8F=B0=E6=89=A7?= =?UTF-8?q?=E8=A1=8C#print=E9=9D=9E=E5=AD=97=E7=AC=A6=E4=B8=B2=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E4=BC=9A=E6=8A=A5=E9=94=99=EF=BC=88=E4=B9=8B=E5=89=8D?= =?UTF-8?q?print=E8=A2=AB=E7=9B=B4=E6=8E=A5=E6=8E=A5=E5=85=A5=E4=BA=86log?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=81=9A=E7=B1=BB=E5=9E=8B=E8=BD=AC=E6=8D=A2?= =?UTF-8?q?=EF=BC=89=20close=20#231?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/app_console.lua | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/parts/scenes/app_console.lua b/parts/scenes/app_console.lua index 98c8a86e..a7bc6886 100644 --- a/parts/scenes/app_console.lua +++ b/parts/scenes/app_console.lua @@ -832,7 +832,7 @@ local userG={ tonumber=tonumber,tostring=tostring, select=select,next=next, ipairs=ipairs,pairs=pairs, - print=log,type=type, + type=type, pcall=pcall,xpcall=xpcall, rawget=rawget,rawset=rawset,rawlen=rawlen,rawequal=rawequal, setfenv=setfenv,setmetatable=setmetatable, @@ -844,6 +844,21 @@ local userG={ math={},string={},table={},bit={},coroutine={}, debug={"No way."},package={"No way."},io={"No way."},os={"No way."}, } +function userG.print(...) + local args,L={...},{} + for k,v in next,args do ins(L,{k,v})end + table.sort(L,function(a,b)return a[1]