12 lines
182 B
Python
12 lines
182 B
Python
import tushare as ts
|
|
|
|
str = ""
|
|
flt = 0
|
|
try:
|
|
flt = float(str)
|
|
except Exception as e:
|
|
print(e)
|
|
flt = 0.0
|
|
|
|
print("val: %f" % flt)
|
|
print (float('452797773974.14')) |