输出
控制台 kongzhitai
kongzhitai.xieru
在控制台打印
text
// 用法:
kongzhitai.xieru(消息1, 消息2, ...);
// 举例:
kongzhitai.xieru("Hello,World!");
let x = 5;
kongzhitai.xieru("x=", x)
// 输出:
Hello,World!
x=5kongzhitai.baocuo
在控制台报错
text
// 用法:
kongzhitai.baocuo(报错信息);
// 举例:
kongzhitai.baocuo("出错啦!");
// 输出:
Traceback (most recent call last):
File "main.py", line 114, in <module>
run(c)
File "main.py", line 514, in run
raise Exception(c)
Exception: 出错啦!弹窗 tanc
tanc.wei
弹出信息窗口
text
// 用法:
tanc.wei(信息1, 信息2, ...);
// 举例:
let n = 1+1;
tanc.wei("1+1=", n);tanc.buhaola
弹出警告窗口
text
// 用法:
tanc.buhaola(信息1, 信息2, ...);
// 举例:
let n = 1+1;
tanc.buhaola("1+1=", n);tanc.chucuola
弹出错误窗口
text
// 用法:
tanc.chucuola(信息1, 信息2, ...);
// 举例:
let n = 1+1;
tanc.chucuola("1+1=", n);