python绘制方波信号 1、效果 2、导入库 pip install numpy pip install matplotlib 3、实现代码 # -*- coding: utf-8 -*-""" @contact: 微信 1257309054 @file: test.py @time: 2024/7/28 14:48 @author: LDC """ import numpy as np import matplotlib.pyplot as plt plt.rcParams['font.sans-serif'