willsonlincake 发表于 2022-4-15 13:27:42

Python电路图

import schemdraw
import schemdraw.elements as elm
with schemdraw.Drawing(file='schematic.svg') as d:
    d += elm.Resistor().label('100KΩ')
    d += elm.Capacitor().down().label('0.1μF', loc='bottom')
    d += elm.Line().left()
    d += elm.Ground()
    d += elm.SourceV().up().label('10V')

Starrry 发表于 2022-4-26 18:11:30

Ω 读作Ohm
μF 读作 micro Farad(如果没记错)
页: [1]
查看完整版本: Python电路图