import tkinter.messagebox # 这个是消息框,对话框的关键
from tkinter import * error_fp_list = [[973.45, '河北xx贸易有限公司', '中国民生银行石家庄中华南大街支行', '691988093'], [1359.22, '鹿泉区xxx', '石家庄交通银行鹿泉支行', 'xxx80100592xxx']] show_fp = ''
for error_fp in error_fp_list:
str_fp = ','.join([str(i) for i in error_fp]) + '\n'
show_fp += str_fp tk = Tk()
tk.withdraw()
tkinter.messagebox.showinfo("提示", show_fp)