1条回答 默认 最新
- 笨鸟快飞呀 2021-11-09 19:26关注
如果可行,点点你的小手,请采纳,谢谢
xstr = input("Input x: ") x = float(xstr) if not x == 0: res = pow(x,2) + 2*(x + 1)/3 res = round(res,2) print('y=%s' %res) else: print('y=0')
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 1无用
如果可行,点点你的小手,请采纳,谢谢
xstr = input("Input x: ")
x = float(xstr)
if not x == 0:
res = pow(x,2) + 2*(x + 1)/3
res = round(res,2)
print('y=%s' %res)
else:
print('y=0')