Commit ca7a3e4f by BellCodeEditor

save project

parent 3c122ab0
s=input("请输入")
if len(s)>=30:
print(s)
else:
print("{:*^30}".format(s))
\ No newline at end of file
s=input("请输入")
if len(s)>=30:
print(s)
else:
s=int(s)
print("{:@^30,}".format(s))
\ No newline at end of file
a=input("请输入4个数字")
b=a.split()
x0=int(b[0])
x1=int(b[2])
y0=int(b[1])
y1=int(b[3])
d=pow((x1-x0),2)
e=pow((y1-y0),2)
D=pow((d+e),0.5)
print("{:.1f}".format(D))
\ No newline at end of file
a=input("请输入三角形第一条直角边的边长")
b=input("请输入三角形第二条直角边的边长")
print("{:.1f}".format(int(a)*int(b)*0.5))
a=int(input("请输入数字"))
b="{0:b},{0:o},{0:X}".format(a)
c=b.split(",")
print("这个数的二进制:"+c[0]+"\n"+"这个数的八进制:"+c[1]+"\n"+"这个数的十六进制:"+c[2])
\ 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