我有一个问题,它只显示 路易斯(650烫发),当你再次点击它会显示路易斯(使用中),但第三次它是路易斯(650烫发)和我无法找到问题Python(if,else,elif)
def example():
if louis_inventory and louis == 0:
pointstore_skin_ct.addline('->1. Louis (650) Perm')
elif louis_inventory == 1 and louis == 0:
pointstore_skin_ct.addline('->1. Louis (In use)')
elif louis_inventory and louis == 1:
pointstore_skin_ct.addline('->1. Louis (Not in use)')
修正您的缩进,如果它实际上不是那样 – jamylak 2013-04-20 11:58:03
缩进不是问题先生。 – 2013-04-20 12:00:06
是的。你粘贴的代码引发了一个IndentationError。 – ThiefMaster 2013-04-20 12:00:23