-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lua 节 #12
base: main
Are you sure you want to change the base?
Lua 节 #12
Conversation
54d3357
to
74a14d3
Compare
74a14d3
to
7d8a16c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感谢 uwu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UwU
docs/extra/lua/operator.md
Outdated
|
||
其对应的 `C#` 代码如下: | ||
```cs | ||
double safeDivide(double a, double b) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
double safeDivide(double a, double b) | |
double SafeDivide(double a, double b) |
print("num is between 5 and 15") -- 输出 num is between 5 and 15 | ||
end | ||
local function divide(a, b) | ||
return b ~= 0 and a/b or error("division by zero") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return b ~= 0 and a/b or error("division by zero") | |
return b ~= 0 and a/b or error("divide by zero") |
4afa4ee
to
08547a1
Compare
No description provided.