You've already forked QWeatherReporter
update: used match-case syntax
This commit is contained in:
@@ -692,6 +692,7 @@ if __name__ == '__main__':
|
|||||||
help='Some operations for test.',
|
help='Some operations for test.',
|
||||||
choices=arg_keywords)
|
choices=arg_keywords)
|
||||||
startup_arg = parser.parse_args().test
|
startup_arg = parser.parse_args().test
|
||||||
|
# Python3.10 更新的match-case 语法
|
||||||
match startup_arg:
|
match startup_arg:
|
||||||
case 'free':
|
case 'free':
|
||||||
SendWeatherMail().free_mode()
|
SendWeatherMail().free_mode()
|
||||||
|
|||||||
Reference in New Issue
Block a user