添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
print ( "datatype of num_int:" , type ( num_int ) )
print ( "datatype of num_flo:" , type ( num_flo ) )
print ( "Value of num_new:" , num_new )
print ( "datatype of num_new:" , type ( num_new ) )

以上实例输出结果为:

num_int 数据类型为: <class 'int'>
num_flo 数据类型为: <class 'float'>
num_new: 值为: 124.23
num_new 数据类型为: <class 'float'>

代码解析: