
エントリーの編集

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

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
二次方程式の解を求めるプログラム - Qiita
import tkinter as tk def dispLabel(): a = int(EditBox1.get()) b = int(EditBox2.get()) c = int(Edi... import tkinter as tk def dispLabel(): a = int(EditBox1.get()) b = int(EditBox2.get()) c = int(EditBox3.get()) D = b**2-4*a*c if a==0: lbl4.configure(text="x="+str(-c/b)) else: if D<0: lbl4.configure(text="解無し") else: answer1=(-b-(b**2-4*a*c))/2*a answer2=(-b+b**2-4*a*c)/2*a str_answer1=str(answer1) str_answer2=str(answer2) lbl4.configure(text="x="+str_answer1+","+str_answer2) root=tk.Tk() root.geo