Commit cc4ece4c by BellCodeEditor

save project

parent 70e7bf92
Showing with 18 additions and 1 deletions
...@@ -39,7 +39,8 @@ class Note(): # 便签、笔记 ...@@ -39,7 +39,8 @@ class Note(): # 便签、笔记
alist.append(info) alist.append(info)
self.canvas.create_text(40,self.y,text=info,font=("宋体",11), self.canvas.create_text(40,self.y,text=info,font=("宋体",11),
anchor=W, fill='#FF9900') anchor=W, fill='#FF9900')
self.y += 30 self.select=tkinter.Radiobutton(self.canvas,image=self.box,
value=self.val,Variable=self.v)
app = Note() app = Note()
......
number = input("输入数字:")
i = 0
daffodil = 0
while i < len(number):
daffodil += int(number[1]) ** 3
i += 1
if int(number) == daffodil:
print(number,"是水仙花数")
else:
print(number,"不是水仙花数")
\ No newline at end of file
a = int(input("请输入压岁钱数:"))
books = a // 23
remaining_a % 23
print("可以购买{}本书,剩余{}元。".format(books,remaining_a))
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