如何在Python中将科学数字格式化为十进制格式?

2024-04-25 21:13:22 发布

您现在位置:Python中文网/ 问答频道 /正文

我很难将“def pricing(question)”函数的结果转换为十进制值,而不是科学值。你知道吗

我试着将结果转换成字符串,但是没有成功,我也看不到如何格式化pricex变量。你知道吗

非常感谢您的帮助

Code

enter image description hereResult

enter image description here


Tags: 函数字符串defcode科学resultquestionpricing