在我正在开发的游戏中,我使用一个数组来跟踪玩家所在公司的当前统计数据,并使用下面的函数来编辑数组。#Stores currently owned equipment#Stores items available to buy#Stores currently equipped equipment#The com
line 265, in bootstrap File "C:\Users\Jessinia\Downloads\renpy-6.15.7-sdk\renpy\renpy-6.15.7-sdk\renpy\parser.py", line 2093, in report_parse_errors
renpy.display.error.report_parse_errors\renpy.disp
While running game code: renpy.loadFull Traceback ------------------------------------------------------------
File "renpy/ast.py", line 785, in execute
我正在学习Python,我想知道它是否是压缩下面代码中的elif语句的一种方法。我不想有12个不同的elif语句,我想要一个可以循环这个数据结构的函数。有人能帮我吗?character in list[1]:elif character in list[2]:elif character in list[3]:
p
我从python开始的时间还不长,我在这里看了很多帖子,但似乎无法理解我的代码有什么问题.如果用户输入N或n,那么我的elif肯定会启动,但它仍然播放声音并打印出“声音播放”。有人能帮忙吗?谢谢。winsound.PlaySound('C:/Windows/Media/tada.wav', winsound.SND_FILENAME)eliftest2 == "N" or "n":
pr