
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
閏年か否かを求めるコード - Qiita
import tkinter as tk def dispLabel(): a = int(EditBox.get()) str_a=str(a) if a%400 == 0 : lbl3.co... import tkinter as tk def dispLabel(): a = int(EditBox.get()) str_a=str(a) if a%400 == 0 : lbl3.configure(text = str_a + "年は閏年です。") elif a%100 == 0 : lbl3.configure(text = str_a + "年は閏年ではありません。") elif a%4 == 0 : lbl3.configure(text = str_a + "年は閏年です。") else : lbl3.configure(text = str_a + "年は閏年ではありません。") root = tk.Tk() root.geometry("300x200") EditBox = tk.Entry(width=6) EditBox.place(x = 230, y =