matplotlib.pyplot.waitforbuttonpress # matplotlib.pyplot。waitforbuttonpress ( timeout = -1 ) [来源] # 阻止调用与图形交互。 等待用户输入,如果按下键则返回 True,如果按下鼠标按钮则返回 False,如果在 超时秒内没有输入则返回 None。负值禁用timeout。 使用#的示例matplotlib.pyplot.waitforbuttonpress 互动功能 互动功能