我有一個問題,它只顯示 路易斯(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