📌  相关文章
📜  TypeError: showinfo() 采用 0 到 2 个位置参数,但给出了 4 个** - 无论代码示例

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

代码示例1
import time
import tkinter as tk
from tkinter import messagebox as msg
def logged_in():
while(1):
pass_1=input("Enter the password:")
log_in=pass_1=="JP"
if(log_in==True):
msg.showinfo('Yes', 'Password is accessed')
break;
else:
i=1
for i in range(1,i+1):
msg.showinfo('countdown','TRY AGAIN ', i ,' SEC.....')
time.sleep(0.7)
logged_in()