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

纯粹优化下入口代码,因为看到if else太多了 #7345

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ENg-122
Copy link

@ENg-122 ENg-122 commented Mar 17, 2025

What does this PR do?

我想优化下代码
Fixes # (issue)

Before submitting

elif command == Command.EXPORT:
export_model()
elif command == Command.TRAIN:
command = sys.argv.pop(1) if len(sys.argv) != 1 else CMD_FUNC_MAP["help"]
Copy link
Owner

Choose a reason for hiding this comment

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

else "help"

Copy link
Author

Choose a reason for hiding this comment

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

好的 我来修改一下

Copy link
Author

Choose a reason for hiding this comment

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

已修改 辛苦您评审下

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