panic
Fails with an error.
Arguments are displayed to the user (not rendered in the document) as
strings, converting with repr
if necessary.
Example
The code below produces the error panicked with: "this is wrong"
.
#panic("this is wrong")
参数
参数是函数的输入,它们在函数名称后面的括号中传入。
参数是函数的输入,它们在函数名称后面的括号中传入。
panic()
values
The values to panic with and display to the user.