Skip to content
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

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open

Lua 节 #12

wants to merge 22 commits into from

Conversation

ClearZer0
Copy link
Contributor

No description provided.

@ClearZer0 ClearZer0 force-pushed the loenn-stuff branch 5 times, most recently from 54d3357 to 74a14d3 Compare January 17, 2025 06:08
Copy link
Owner

@Saplonily Saplonily left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感谢 uwu

@ClearZer0 ClearZer0 changed the title Loenn 节 Lua 节 Jan 21, 2025
Copy link
Owner

@Saplonily Saplonily left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UwU


其对应的 `C#` 代码如下:
```cs
double safeDivide(double a, double b)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return b ~= 0 and a/b or error("division by zero")
return b ~= 0 and a/b or error("divide by zero")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants