update: used match-case syntax

This commit is contained in:
RTAkland
2021-11-19 17:01:27 +08:00
parent 93686a52e1
commit 68de60a699
1 file changed
+1
+1
View File
@@ -692,6 +692,7 @@ if __name__ == '__main__':
help='Some operations for test.',
choices=arg_keywords)
startup_arg = parser.parse_args().test
# Python3.10 更新的match-case 语法
match startup_arg:
case 'free':
SendWeatherMail().free_mode()