我已經用pygame,easygui和shelve在python中製作了一個簡單的賽車遊戲。我完成了遊戲,並且從閒置和從我的.desktop文件中運行都很好。之後,我決定嘗試添加高分系統。該系統在閒置狀態下工作良好,但從.desktop文件中,我收到了一個錯誤「致命的python錯誤:(pygame降落傘)分段錯誤。」我真的想留在遊戲中的排行榜系統,因此任何幫助將是appreciated.` if
我想在Python 3.3上安裝EasyGui,我沒有看到它。我已經得到它與Python 2.7的工作,但不是3.3。 我將從他們的網站上的說明: Unpack the archive file into a temporary directory Open a console window and navigate to the temporary directory. At the comma
這是我在Python中的第二個程序。我似乎對我的進步感到滿意。問題是我試圖做的是: choice=eg.ynbox(msg='wat to do')
for["true","1"] in choice:
print("yes")
for["false","0"] in choice:
print("no")
問題是,這對於條件不起作用。我在查看前一個問題的答案時看到