Commit 5d811a1a by BellCodeEditor

save project

parent 82e90186
......@@ -7,6 +7,8 @@ pen.hideturtle()
screen=turtle.Screen()
screen.bgcolor("purple")
pen1=turtle.Pen()
pen1.penup()
pen1.goto(-100,0)
......
import turtle
++ "b/\345\234\206.py"
import turtle
zhouchang=random
circle
\ No newline at end of file
a=int(input("请输入数字:"))
a=int(input("请输入数字:"))
......@@ -4,4 +4,12 @@ if a==1 or a==3 or a==5:
elif a>7:
print("输入错误,请输入1~7之间的数字")
else:
print("YES")
\ No newline at end of file
print("YES")
chr() #转化为字符
ord() #
math #
math.print#
math.ceil()#
math.sqrt()#
\ No newline at end of file
def hello(name):
def hello(name):
content="你好!"+name
return content
result=hello("小依")
print(result)
\ No newline at end of file
a=int(input("请输入一个数字:"))
#a=int(input("请输入一个数字:"))
a=int(input("请输入一个数字:"))
print(chr(a))
#a=int(input("请输入一个数字:"))
#print(chr(a))
#b=input("请输入一个字符:")
#print(ord(b))
for i in range(48,123):
print(i,chr(i))
\ No newline at end of file
h=int(input("请输入圆桶的深度H:"))
import math
import math
PI=a=math.pi
h=int(input("请输入圆桶的深度H:"))
r=int(input("请输入底面半径R:"))
V=3.14159*r*r*h
C=V%20
V=PI*r*r*h
C=V/1000
C=math.ceil(C)
print(C)
\ No newline at end of file
a=int(input("请输入端点坐标A:"))
import math
a=int(input("请输入端点坐标A:"))
b=int(input("请输入端点坐标B:"))
\ No newline at end of file
import math
Xa=int(input("a"))
Xb=int(input("a"))
Ya=int(input("a"))
Yb=int(input("a"))
a=(Xb-Xa)*(Xb-Xa)+(Yb-Ya)*(Yb-Ya)
print(math.sqrt(a))
-- "a/\347\210\261\345\277\203.py/15.py"
import turtle
import turtle
x1=int(input("a"))
x2=int(input("a"))
x3=int(input("a"))
y1=int(input("a"))
y2=int(input("a"))
y3=int(input("a"))
a=
print(a)
-- "a/\347\210\261\345\277\203.py/17.py"
n=int(input("请输入箱内苹果的个数:"))
n=int(input("请输入箱内苹果的个数:"))
x=int(input("请输入x:"))
y=int(input("请输入完整苹果个数:"))
y=n-x
print(y)
\ No newline at end of file
-- "a/\347\210\261\345\277\203.py/18.py"
a=int(input("a"))
a=int(input("a"))
b=int(input("b"))
c=int(input("c"))
print("Data Error")
if a*b/2 =d
print(d)
\ No newline at end of file
-- "a/\347\210\261\345\277\203.py/19.py"
A=int(input("a"))
A=int(input("a"))
if A>0:
print("positive")
if A=0:
print("zero")
if A<0:
print("negative")
\ No newline at end of file
-- "a/\347\210\261\345\277\203.py/20.py"
b=input("请输入字符:")
b=input("请输入字符:")
c=ord(b)
if 0!=c%2:
print("YES")
else:
print("NO")
\ No newline at end of file
def new_input():
def new_input():
......@@ -6,10 +6,11 @@ def new_input():
if b=='q':
break
b=int(b)
except:
except:
print("请输入数字:")
else:
a.append(b)
return a
print(a)
new_input()
\ No newline at end of file
result=new_input(a)
print(result)
\ No newline at end of file
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