Commit c3b1dfe3 by BellCodeEditor

auto save

parent e7e96b80
Showing with 30 additions and 0 deletions
import tkinter as tk
from PIL import Image,ImageTk
window=tk.Tk()
window.title('My Window')
window.geometry('720x550')
canvas=tk.Canvas(window,bg='blue',height=440,width=430)
img=Image.open('./米奇老鼠.jpg')
photo=ImageTk.PhotoImage(img)
Image=canvas.create_image(0,0,anchor='nw',image=photo)
x1,y1,x2,y2=0,0,80,80
line=canvas.create_line(x1,y1,x2,y2,fill='red')
line=canvas.create_line(x1,y1,x2,y2,fill='red')
line=canvas.create_line(x1,y1,x2,y2,fill='red')
line=canvas.create_line(x1,y1,x2,y2,fill='red')
canvas.pack()
def moveit():
canvas.move(rect,0,3)
\ No newline at end of file
m,n=map(int,input().split())
sum=0
for i in range(m,n+1):
if i%17==0:
sum += i
print(sum)
\ 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