Commit d9ef2647 by BellCodeEditor

auto save

parent 82173cf6
Showing with 50 additions and 2 deletions
int_1 = input()
y = int_1.split(",")
n = list(map(int,y))
u = [0]
for i in range(0,len(n)-1):
if n[i] < n[i+1]:
if u[i]>n[i+1]:
u.append(n[i+1])
elif u[i]<n[i+1]:
u[i] = n[i+1]
u.append(u[i])
else:
print(u)
elif n[i+1] < n[i]:
if u[i]>n[i]:
u.append(n[i])
elif u[i]<n[i]:
u[i] = n[i]
u.append(u[i])
else:
print(u)
else:
print(n)
print(u)
\ No newline at end of file
bg.gif

5.52 KB

......@@ -9,11 +9,11 @@ class Note(): # 便签、笔记
self.root.geometry('300x340+1000+200')
self.root.title("我的便签-待办事项")
self.root.resizable(width=False, height=False)
self.bg_img = tkinter.PhotoImage(file='bg.png')
self.bg_img = tkinter.PhotoImage(file='bg.gif')
def show(self): # 布置窗口界面
# 输入框
canv = tkinter.Canvas(root,width=300,height=340,bg='blue')
self.canvas=tkinter.Canvas(self.root,width=300,height=340)
self.canvas.creat_image(0,0,image=self.bg_img,anchor=NW)
self.canvas.place(x=0,y=0)
self.ent = tkinter.Entry(self.root, show=None,
......@@ -24,6 +24,10 @@ class Note(): # 便签、笔记
bg="lightblue", width=5, command=self.get_info)
self.but.place(x=240, y=305)
self.y=20
for info in alist:
self.canvas.create_text(40,self.y,text=info,font=('宋体',11),anchor=W,fill='#FF9900')
def get_info(self):
pass
......
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("black")
pen.forward(50)
pen.right(120)
pen.forward(50)
pen.right(60)
pen.forward(100)
pen.right(60)
pen.forward(100)
pen.right(60)
pen.forward(100)
pen.right(60)
pen.hideturtle()
turtle.done()
\ 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