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

bellcode / lesson3-1-1_DIY1

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

auto save

parent c66a449e
Show whitespace changes
Inline Side-by-side
Showing with 67 additions and 19 deletions
  • 4567
  • diy1.py
  • wyz.py/wyz.py
4567 0 → 100644
View file @ a82a8620
a=input("输入足岁年龄")
b=a*5+75
c=a*5+8
print("标准身高")
print("标准体重")
\ No newline at end of file
This diff is collapsed. Click to expand it.
diy1.py
View file @ a82a8620
# 利用write()帮助悟空给诺依回信吧~
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
len=screen.textinput("100","100")
len=int(len)
pen=turtle.Pen()
pen.write("你好\nSB.",font=("Times",30,"normal"))
pen.hideturtle()
len=60
pen.penup()
pen.goto(100,100)
pen.pendown()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
scecren=turtle.Screen()
scecren.bgcolor("pink")
Pen=turtle.Pen()
Pen.penup()
Pen.goto(0,-100)
Pen.write("",font=("Times",20,"normal"))
len=50
Pen1=turtle.Pen()
Pen1.pensize(5)
Pen1.pencolor("red")
Pen1.left(45)
Pen1.fd(2*len)
Pen1.circle(len,180)
Pen1.right(90)
Pen1.circle(len,180)
Pen1.fd(2*len)
turtle.done()
turtle.
This diff is collapsed. Click to expand it.
wyz.py/wyz.py 0 → 100644
View file @ a82a8620
print("====游戏管理系统====")
print("1.增加角色和段位")
print("2.删除角色")
print("3.修改段位")
print("4.查询所有角色")
print("5.根据角色查找段位")
print("6.退出")
print("===================")
wanzhe={}
while True:
a=input()
if (int(a)==1):
b=input('角色:')
c=input('段位:')
wanzhe[b]=c
if (int(a)==2):
d=input('删除的角色:')
del wanzhe[d]
if (int(a)==3):
e=input('修改段位的人:')
f=input('现段位:')
wanzhe[e]=f
if (int(a)==4):
for g in wanzhe:
print(g,wanzhe[g])
if (int(a)==5):
h=input("你所寻找的角色:")
i=wanzhe[h]
print(i)
if (int(a)==6):
exit()
\ No newline at end of file
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