From eeb6b25a6701d8938d503663611eebb08bc05649 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Wed, 4 Jun 2025 20:52:41 +0800 Subject: [PATCH] save project --- func.py | 40 ++++++++++++++-------------------------- w.py | 4 ---- 2 files changed, 14 insertions(+), 30 deletions(-) diff --git a/func.py b/func.py index c2843eb..6b9075b 100644 --- a/func.py +++ b/func.py @@ -1,26 +1,14 @@ -def a(): - total = [] - while True: - unit=input("请输入:") - if unit== 'q': - break - else: - try: - unit=int(unit) - except: - print("请输入数字:") - else: - total.append(unit) - finally: - print("-"*30) - return total - -def sum(money): - count=0 - for i in money: - count=count+i - return count -# price=a() -# pay=sum(price) -#print("您一共消费了"+str(pay)+"元") - +import turtle +a=turtle.Pen() +a.pensize(10) +a.penup() +a.goto(-50,100) +a.pendown() +a.pencolor("red") +a.right(90) +a.fd(200) +a.left(90) +a.pencolor("blue") +a.circle(100,180) +a.hideturtle() +turtle.done() \ No newline at end of file diff --git a/w.py b/w.py index 895aca7..e69de29 100644 --- a/w.py +++ b/w.py @@ -1,4 +0,0 @@ -import func -d=func.a() -s=func.sum(d) -print("这位选手的总分数为:"+str(s)) \ No newline at end of file -- libgit2 0.25.0