mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 12:14:43 +00:00
1.1 KiB
1.1 KiB
過程
print!
打印!(x)->無類型
使用換行符返回 x
調試&排除;
調試!(x,類型=信息)-> NoneType
用換行符調試 x(文件名、行號、變量名一起顯示)。在發布模式中刪除 支持表情符號的終端根據類型加前綴
- type == Info: ??
- type == Ok: ?
- type == Warn: ??
- type == Hint: ??
for!i: Iterable T, block: T => NoneType
以塊的動作遍歷迭代器
while! cond!: () => Bool, block!: () => NoneType
當cond!()為True時的執行塊