Commit a2c7604c by BellCodeEditor

save project

parent f74125e8
Showing with 14 additions and 0 deletions
with open(r'C:\Users\WIN10\Documents\新建文本文档.txt','r',encoding='utf-8')as file:
for data in file:
if '1' in data:
print('1在文件中')
if '20' in data:
print('20在文件中')
\ No newline at end of file
......@@ -15,6 +15,7 @@ while True:
print(k,v)
print("*"*30)
elif name == 'q':
print("程序结束")
break
else:
print("输入错误\n"+'*'*30)
......
A={'a':3800,'b':300*5,'ab':320*9}
B={'c':2800,'d':360*6,'ac':320*12}
C={'e':4000,'f':880}
print(A,B,C)
\ 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