Commit e7e1cf9a by BellCodeEditor

save project

parent 107ba80e
Showing with 6 additions and 5 deletions
a = open(r"C:\Users\lenovo\Desktop\text.txt","w",encoding = "utf-8")
a = int(input("请输入一个三位整数")) a.write("小兰:12本\n")
print("个:" + str(a%10)) a.write("小丽:11本\n")
print("十:" + str(a%100//10)) a.write("李文:9本\n")
print("百:" + str(a//100)) a.write("张伟:16本\n")
a.close()
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