Commit 79cc5869 by BellCodeEditor

save project

parent 112e3acf
Showing with 33 additions and 17 deletions
import turtle
pen = turtle.Pen()
pen.color('blue')
pen.hideturtle()
for i in range(8):
pen.left(45)
for i in range(5):
pen.forward(50)
pen.left(72)
turtle.done()
with open(r'C:\Users\Administrator\Desktop\sales_list.txt','r',encoding='GBK') as file1: list1 = list(range(10))
a=file1.readlines() print(list1[1:5])
for i in a: \ No newline at end of file
b = i.split()
print(b[1:])
\ No newline at end of file
sales=[]
with open(r'C:\Users\Administrator\Desktop\sales_list.txt','r',encoding='GBK') as file1:
A = file1.readline()
print(A)
sum = 0
for i in A[1:]:
print(i)
sum = sum+int(i)
print(sum)
\ No newline at end of file
import turtle import tkinter as tk
import webbrowser as web
pen=turtle.Pen() root = tk.Tk()
distance=1 root.geometry('300x210')
for i in range(300): we = web.open('www.bilibili.com')
pen.forward(distance) lb = tk.Button(root,width = 10,height = 5,command = we)
distance+=1 lb.pack()
pen.right(91) root.mainloop()
pen.hideturtle() \ No newline at end of file
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