Commit 5d811a1a by BellCodeEditor

save project

parent 82e90186
...@@ -7,6 +7,8 @@ pen.hideturtle() ...@@ -7,6 +7,8 @@ pen.hideturtle()
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("purple") screen.bgcolor("purple")
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.penup() pen1.penup()
pen1.goto(-100,0) 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("请输入数字:"))
...@@ -5,3 +5,11 @@ elif a>7: ...@@ -5,3 +5,11 @@ elif a>7:
print("输入错误,请输入1~7之间的数字") print("输入错误,请输入1~7之间的数字")
else: else:
print("YES") 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("请输入一个数字:")) #a=int(input("请输入一个数字:"))
print(chr(a)) #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:")) h=int(input("请输入圆桶的深度H:"))
r=int(input("请输入底面半径R:")) r=int(input("请输入底面半径R:"))
V=3.14159*r*r*h V=PI*r*r*h
C=V%20 C=V/1000
C=math.ceil(C)
print(C) print(C)
\ No newline at end of file
a=int(input("请输入端点坐标A:")) import math
a=int(input("请输入端点坐标A:")) import math
b=int(input("请输入端点坐标B:")) Xa=int(input("a"))
\ No newline at end of file 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():
...@@ -11,5 +11,6 @@ def new_input(): ...@@ -11,5 +11,6 @@ def new_input():
else: else:
a.append(b) a.append(b)
return a return a
print(a) result=new_input(a)
new_input() print(result)
\ No newline at end of file
\ 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