python 全部re 求助

P5735 【深基7.例1】距离函数

wykun1234 @ 2021-08-31 15:37:17

from math import*
def dis(a, b, c, d):
    return sqrt((a-b)**2+(c-d)**2)
def main():
    x1,y1,x2,y2,x3,y3=map(int,input().split())
    print(int(dis(x1,x2,y1,y2)+dis(x1,x3,y1,y3)+dis(x2,x3,y2,y3)))
main()

by lonely_cyx @ 2021-08-31 15:49:16

o,pyzhon啊,那没事了


by 求学的企鹅 @ 2021-08-31 16:06:42

@hyzhuo ?


by 求学的企鹅 @ 2021-08-31 16:07:03

@wykun1234 保留两位小数


by wykun1234 @ 2021-08-31 16:19:20

@求学的企鹅 哦哦 我太粗心了 谢谢啦


by 令猴冲0011001 @ 2021-09-19 22:55:44

@wykun1234 求助大神。。。还是没有解决


|