![](/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.