Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

Administrator / lesson11_5

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit 271cfbd2 authored 3 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent 143a1d1d
Show whitespace changes
Inline Side-by-side
Showing with 7 additions and 4 deletions
  • func.py
func.py
View file @ 271cfbd2
import turtle import turtle
#背景颜色
screen=tuple.Screen() screen=tuple.Screen()
screen.bgclor("light blue") screen.bgclor("light blue")
#写字
pen=turtle.pen() pen=turtle.pen()
pen.penup() pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
pen.write(“嗨,诺依~\n用python写电子贺卡真是太有趣了~\n我也喜欢python~\n悟空",font=(times",20,"nomal")) pen.width(“嗨,悟空,写贺卡真是太有趣了,我喜欢你!!!我能嫁给你吗?你女朋友不会生气吧?不像我,我只会心疼giegie~~~——诺依",font=(Times",20,"normal"))
pen.hidetutle() pen.hidetutle()
#画爱心
pan1.tutle.pen() pan1.tutle.pen()
pan.pancolor("red") pan1.pancolor("red")
pan1.pensize(5) pan1.pensize(5)
lovesize=screen.textinput("提示","你想要多大的爱心呀?") lovesize=screen.textinput("提示,你想要多大的爱心呀?")
len=int(lovesize) len=int(lovesize)
pan1.left(45) pan1.left(45)
pani.forward(2*len) pan1.forward(2*len)
pan1.circle(100,180) pan1.circle(100,180)
pen1.right(90) pen1.right(90)
pan1.circle(100,180) pan1.circle(100,180)
......
This diff is collapsed. Click to expand it.
  • Write
  • Preview
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