Commit c9b9a362 by BellCodeEditor

auto save

parent a50ceeec
score=[90,99,67,98,89,30,77,59,61,88]
name=["a","b","c","d","e","f","g","h","i","j"]
del score[1:2]
print(score)
'''for i in score:
#print(i)
if i<60:
resut=score.index(i)
resut_=name[resut]
print("小于60分的人有:",resut_,"成绩为:",i)
'''
\ No newline at end of file
def delharaword(s,a):
b=[]
for i in s:
if i!=a :
b.append(i)
return b
s=input("你的字符串是什么")
t=delharaword(s,"a")
print(t)
new_str="".join(t)
print(new_str)
\ No newline at end of file
input("输入边长")
\ No newline at end of file
import turtle
a=turtle.Pen()
a.penup()
a.goto(10,-200)
a.pendown()
a.circle(200,360,6)
a.penup()
a.goto(-90,50)
a.pendown()
a.begin_fill()
a.fillcolor("red")
a.circle(20)
a.penup()
a.goto(110,50)
a.pendown()
a.circle(20)
a.end_fill()
a.penup()
a.goto(10,50)
a.pendown()
a.fillcolor("blue")
a.begin_fill()
a.circle(-50,360,3)
a.end_fill()
a.penup()
a.goto(-150,-70)
a.pendown()
a.goto(150,-70)
a.goto(0,-170)
a.goto(-150,-70)
turtle.done()
\ No newline at end of file
b=input("输入边长:")
a=float(b)
a1=a*4
print("周长为:%0.3f"%a1)
a2=a*a
print("面积为:%0.3f"%a2)
while True:
num=float(input("买多少斤苹果"))
if num<6:
money=num*5
elif num>=6 and num<=10:
money=num*5*0.8
elif num>10:
money=num*5*0.7
print("你的苹果总价为:%0.2f元"%(money))
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
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