Commit f93c5605 by BellCodeEditor

auto save

parent 7edb9241
Showing with 13 additions and 0 deletions
file1 = open(r"C:\Users\ming\Desktop\test.txt",'r',encoding='utf-8')
for data in file1:
if data == "小强:10本\n":
print("找到了")
file1.close()
a = "0123456789"
index_in = int(input("请输入下标:"))
try:
print(a[index_in])
except:
print(a[-1])
\ 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