matlab出现试图将脚本当做函数运行的错误怎么修改,那个脚本文件是全说明性的,但是主函数里面有调

2025-04-02 11:50:58
推荐回答(1个)
回答1:

if paused: # r如果当前的状态是暂停
paused_image = resume_pressed_image
pygame.time.set_timer(supply_timer, 0) #
pygame.mixer.music.pause()
pygame.mixer.pause()
else:
paused_image = pause_pressed_image
pygame.time.set_timer(supply_timer, 30 * 1000) #
pygame.mixer.music.unpause()
pygame.mixer.unpause()