We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
controllers/apps.py
game_format_list_num = ["1番", "2番", "3番", "4番", "5番"] select_game_format = radio("試合形式を選択して下さい:", options=game_format_list_num) if select_game_format == "1番": select_game_format = 1 toast(game_format_list[1] + "という試合形式で試合開始です!", duration=3, position='left') elif select_game_format == "2番": select_game_format = 2 toast(game_format_list[2] + "という試合形式で試合開始です!", duration=3, position='left') elif select_game_format == "3番": select_game_format = 3 toast(game_format_list[3] + "という試合形式で試合開始です!", duration=3, position='left') elif select_game_format == "4番": select_game_format = 4 toast(game_format_list[4] + "という試合形式で試合開始です!", duration=3, position='left') elif select_game_format == "5番": select_game_format = 5 toast(game_format_list[5] + "という試合形式で試合開始です!", duration=3, position='left') return select_game_format
は game_format_list_num = ["1番", "2番", "3番", "4番", "5番"] を game_format_list_num = {"1番": 1, "2番": 2, "3番"... とDictで定義するとその後の処理を
select_game_format = game_format_list_num[select_game_format] toast(game_format_list[select_game_format] + "という試合形式で試合開始です!", duration=3, position='left')
だけの記述ですみます。(変数名などはわかりにくさを生むので別途修正の必要あり)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
controllers/apps.py
は
game_format_list_num = ["1番", "2番", "3番", "4番", "5番"]
を
game_format_list_num = {"1番": 1, "2番": 2, "3番"...
とDictで定義するとその後の処理を
だけの記述ですみます。(変数名などはわかりにくさを生むので別途修正の必要あり)
The text was updated successfully, but these errors were encountered: