Commit 7abd4fca by BellCodeEditor

save project

parent d17af098
Showing with 15 additions and 10 deletions
小赵:99999999999999999999999999999999999999999999999999999999999999999999999999999999本
小猪:99999999999999999999999999999999999999999999999999999999999999999999999999999999本
import tkinter
root = tkinter.Tk()
root.title("**")
root.geometry("400x320+500+300")
el = tkinter.Entry(root,show="*",font=("宋体",14),bg="light grey",width=18)
el.place(x=140,y=80)
el = tkinter.Entry(root,show="*",font=("宋体",14),bg="light grey",width=18)
el.place(x=140,y=80)
root.mainloop()
\ No newline at end of file
f=open(r'2.txt','w',encoding='utf-8')
f.write("小赵:99999999999999999999999999999999999999999999999999999999999999999999999999999999本\n")
f.write("小猪:99999999999999999999999999999999999999999999999999999999999999999999999999999999本\n")
f.close()
with open(r'2.txt','r',encoding='utf-8')as f:
for data in f:
if "小猪:99999999999999999999999999999999999999999999999999999999999999999999999999999999本" in data:
print("存在")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment