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:
a=file1.readlines()
for i in a:
b = i.split()
print(b[1:])
\ No newline at end of file
list1 = list(range(10))
print(list1[1:5])
\ 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
pen=turtle.Pen()
distance=1
for i in range(300):
pen.forward(distance)
distance+=1
pen.right(91)
pen.hideturtle()
turtle.done()
\ No newline at end of file
import tkinter as tk
import webbrowser as web
root = tk.Tk()
root.geometry('300x210')
we = web.open('www.bilibili.com')
lb = tk.Button(root,width = 10,height = 5,command = we)
lb.pack()
root.mainloop()
\ 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