本記事では、抵抗の分圧回路を例に、Pythonで抵抗値を計算し、導出した抵抗定数を回路図に記載して出力するプログラムを書いてみたので、その内容を記載します。 以前に描いた記事で、Python で回路図を描けるライブラリ Schem Draw を使って回路図を作成 ...
def draw_square(top_right_x, top_right_y, side_length,side_height): square = canvas.create_rectangle(top_right_x, top_right_y,bottom_left_x, bottom_left_y, outline ...