很奇怪 延时功能并没有 在输出print 1 之后被调用
感觉上一进函数 首先调用 延时 然后再 print 1的
麻烦高手讲解下 谢谢

代码: 全选
def B_Connect(self,event):
ftp = FTP()
try:
ftp.connect(ftp_address, ftp_port)
ftp.login(ftp_username, ftp_password)
[color=#FF0000] print 1[/color]
try:
file_handler = open(enconfig_file,'wb')
get_file = 'RETR '+ enconfig_file
ftp.retrbinary(get_file,file_handler.write)
file_handler.flush()
file_handler.close()
ftp.quit()
except:
self.multiText.AppendText("Sorry, Cannot get the CIS Profiles\n")
except:
self.multiText.AppendText("Sorry, Cannot connect to CIS server\n")
[color=#FF0000] sleep(2)[/color] #os.path.getsize('test.py')
self.multiText.AppendText("Now you can scan your system\n")