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

bellcode / lesson12-1

  • 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 eed2afdd authored 2 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

auto save

parent 7e3a2ff3
Hide whitespace changes
Inline Side-by-side
Showing with 162 additions and 1 deletions
  • 1.dy/.py
  • 1.dy/1.py
  • 1.dy/2.dy
  • diy.py
1.dy/.py 0 → 100644
View file @ eed2afdd
import turtle
screen=turtle.Screen()
screen.textinput("姓名框","你的名字是:")
turtle.done()
This diff is collapsed. Click to expand it.
1.dy/1.py 0 → 100644
View file @ eed2afdd
import turtle
screen=turtle.Screen()
screen.bgcolor("green")
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("论\n操你妈",font=("Time",20,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.pencolor("red")
pen1.pensize(5)
screen=turtle.Screen()
len=int(screen.textinput("提示","你想要多大的圆:"))
pen1.left(45)
pen1.forward(2*len)
pen1.circle(len,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(2*len)
pen1.hideturtle()
turtle.done()
This diff is collapsed. Click to expand it.
1.dy/2.dy 0 → 100644
View file @ eed2afdd
import turtle
pen=turtle.Pen
pen.write("论操你妈",font=("Time",20,"normal"))
turtle.done()
\ No newline at end of file
This diff is collapsed. Click to expand it.
diy.py
View file @ eed2afdd
# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本' #file1=open(r'C:\Users\Administrator\Desktop\test.txt','w',encoding='utf-8')
#file1.write('小兰: 12本\n')
#file1.write('小李: 11本\n')
#file1.write('小美: 9本\n')
#file1.write('小蛛: 16本\n')
#file1.close()
with open(r'C:\Users\Administrator\Desktop\test.txt','a',encoding='utf-8')
file.write('西安: 10本\n
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