下面是一个例子:
>>> from decimal import Decimal
>>> nrml_price = Decimal('0.59')
>>> discounted = nrml_price / 3 # Taking 2/3 off the price with a coupon
Decimal('0.1966666666666666666666666667') # Customers don't have fractions of a penny
>>> (nrml
请建议我一个方法来找到一个已安装的手机应用程序的计数。
还可以找到具有特定名称的已安装应用程序的计数。
示例:
1)如果安装了AA.jar、bb.jar、cc.jar
it should show count as 3
2)如果AA.jar安装了两次
it should show count as 2
谢谢,