Commit 3687583c by BellCodeEditor

auto save

parent 84c2a9a0
Showing with 9 additions and 5 deletions
......@@ -7,7 +7,11 @@
# file.write('小明:1本\n')
# file.close()
a=['red','blue','yellow','black']
for i in range(100):
print(a[i%4])
i+=1
\ No newline at end of file
# a=['red','blue','yellow','black']
# for i in range(100):
# print(a[i%4])
# i+=1
with open(r"C:\Users\EDZ\Desktop\1.txt",'r',encoding='utf-8') as file:
for i in file:
if "小明:1本" in i:
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