"pygame"で"Rectオブジェクト"を作成しようと思い、"powershell"で"pygame"を"import"し、
r = Rect(30,20,60,40)
と入力したのですが、
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'Rect' is not defined
と出てしまいできませんでした。どうすればいいのでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/12/29 13:18
2018/12/29 13:20
2018/12/29 13:30