-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Add prompt text when the "search" command has no parameters.
2. Update the info information reuse logic 3. Add inline mode test function 4. Fixed plugin bug: local variable 'encoding' referenced before assignment
- Loading branch information
Showing
3 changed files
with
62 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
username = "efwef" | ||
def create_info_message(): | ||
return ( | ||
f"`Hi, {username}!`\n\n" | ||
) | ||
|
||
# 假设 update 和 config 是已经定义好的对象 | ||
# 当你需要更新 info_message 时,只需调用这个函数 | ||
info_message = create_info_message() | ||
print(info_message) | ||
username = "e111111" | ||
info_message = create_info_message() | ||
print(info_message) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters