0.在Python中是什么意思?

时间:2019-10-23 13:09:33

标签: python

我是Python初学者。 有人可以解释此代码的含义吗?

preserve-order="true"

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> <suite name="yourSuiteName" > <test name="1stTC" preserve-order="true"> <classes> <class name="yourPackage.YourClass" > <methods> <include name="method1" /> <include name="method2" /> <include name="method3" /> <include name="method4" /> <include name="method5" /> <include name="method6" /> </methods> </class> <classes> </test> <test name="2ndTC" preserve-order="true"> <classes> <class name="yourPackage.YourClass"> <methods> <include name="method1" /> <include name="method2" /> <include name="method3" /> <include name="method8" /> <include name="method9" /> <include name="method10" /> </methods> </class> </classes> </test> </suite> harvest["year"] = harvest.index.year harvest["DM"] = harvest["N"] = 0. harvestyear是数据和数据变量。 DM在这里是什么意思?

1 个答案:

答案 0 :(得分:8)

>>> type(0)
<class 'int'>
>>> type(0.)
<class 'float'>

它只是确保结果(仍为零)为float instead of an int