![](/img/trans.png)
[英]how to store an image in a variable and pass that variable as a argument in another function?
[英]How to raise a variable to a power and store it to another variable
x = float(input("The first side\'s length:"))
y = float(input("The second side\'s length:"))
z = x**2 + y**2
我假设您希望 Z 是 x 平方和 y 平方的总和。 无论如何,平方的正确语法是使用**2
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.