🌈write in front🌈
🧸大家好,我是Aileen🧸.希望你看完之后,能对你有所帮助,不足请指正!共同学习交流.
🆔本文由Aileen_0v0🧸 原创 CSDN首发🐒 如需转载还请通知⚠️
📝个人主页:Aileen_0v0🧸—CSDN博客
🎁欢迎各位→点赞👍 + 收藏⭐️ + 留言📝
📣系列专栏:Aileen_0v0🧸的PYTHON学习系列专栏——CSDN博客
🗼我的格言:"没有罗马,那就自己创造罗马~"

目录

- # 两点间的距离
- #tip1:不使用math库
- x1,y1=map(float,input().split())
- x2,y2=map(float,input().split())
- D = ((x2 - x1)**2 + (y2 - y1)**2)**0.5
- print("%.4f"%D)
-
- #tip2: 使用math库
- from math import sqrt
- x1,y1 = map(float,input().split())
- x2,y2 = map(float,input().split())
- D = sqrt((x2 - x1)**2 + (y2 - y1)**2)
- print("%.4f"%D)

- N = int(input())
- print(N)
- print("%d nota(s) de R$ 100,00 "%(N // 100))
- N %= 100
- print("%d nota(s) de R$ 50,00 "%(N // 50))
- N %= 50
- print("%d nota(s) de R$ 20,00 "%(N // 20))
- N %= 20
- print("%d nota(s) de R$ 10,00 "%(N // 10))
- N %= 10
- print("%d nota(s) de R$ 5,00 "%(N // 5))
- N %= 5
- print("%d nota(s) de R$ 2,00 "%(N // 2))
- N %= 2
- print("%d nota(s) de R$ 1,00 "%(N // 1))

- #差-顺序结构
- A = int(input())
- B = int(input())
- C = int(input())
- D = int(input())
- X =(A * B - C * D)
- print("DIFERENCA = %d"%X)

- #工资
- x = int(input())
- t = int(input())
- S = float(input())
- SALARY = float(t * S)
- print("NUMBER = %d"%x)
- print("SALARY = U$ %.2f"%SALARY)
