From f58c4e19baaa8c41086e26c0b4baf94c0035e669 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 23 Aug 2020 14:02:10 +0800 Subject: [PATCH] save project --- diy1.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/diy1.py b/diy1.py index 0b5384a..09f5b00 100644 --- a/diy1.py +++ b/diy1.py @@ -1,11 +1,10 @@ # 利用write()帮助悟空给诺依回信吧~ import turtle -import random -len=[100,50,150] -a=random.choice(len) screen=turtle.Screen() screen.bgcolor("#0000FF") +a=screen.textinput("哈哈","输入爱心的大小:") +a=float(a) pen=turtle.Pen() pen.penup() pen.goto(100,0) -- libgit2 0.25.0