如何从python

时间:2018-04-05 09:58:23

标签: python

[('"SELLER_ID": "['5187296']"', '"GT_SELLER_ID":"['18149']"', '"TOTAL_TAG_COUNT": "['476']"', '"total_product_count":"['486']"', '"tag_count_diff": "['-10']"')]

我想获得tag_count_diff/total_tag_count*100的模数。

1 个答案:

答案 0 :(得分:0)

模运算符id的“%”

tag_count_diff % (total_tag_count*100)