简体   繁体   English

如何将下面 pi_string 的结果保存到新变量 pi_flow 中?

[英]How do I save the result of pi_string below into a new variable pi_flow?

# Convert pi_string into float: pi_float
pi_string = float("3.1415926")
print(pi_string)

You can do this:你可以这样做:

pi_flow = pi_string

You can use the equals operator in python.您可以在 python 中使用等于运算符。 Read up about it here . 在这里阅读它。

Hopefully this helps!希望这会有所帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM