📜  python代码示例中的简单点击计数器

📅  最后修改于: 2022-03-11 14:46:27.206000             🧑  作者: Mango

代码示例1
click = False
click_counter = 0

if click == True:
    click_counter += 1
    click = False

print(click_counter)

# once the click becomes True
# one click adds to the click_counter
# Then click variable becomes False and start the process all over again