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(..any)
valuesany必需参数位置参数变长参数
any
必需参数位置参数
变长参数
The values to panic with and display to the user.