求助
if ball.ycor()> 290:ball.sety(290)
ball.dy *= -1
os.system("afplay bounce.wav&")
Traceback (most recent call last):
File "C:/Users/86187/Desktop/01.py", line 102, in <module>
os.system("afplay bounce.wav&")
NameError: name 'os' is not defined
大佬们,我这是哪里错了
os 模块还没导入吧
你在代码前面加下 import os
页:
[1]