Sophie

Sophie

distrib > Mageia > 7 > armv7hl > by-pkgid > 8b78f6bf564e7c2c25d2e77d16de1494 > files > 20

zh-autoconvert-0.3.16-12.mga7.armv7hl.rpm

#!/usr/bin/python
#Author Ha Shao <hashao@china.com>
#2000.8.30

import fileinput
import string

for line in fileinput.input():
    if(fileinput.filename() == "400b5.txt"):
    	total = 171894734
    elif (fileinput.filename() == "400gb.txt"):
        total = 45376453

    s = string.split(line)
    print "%s,\t%f" % (s[1], (float(s[2]))/ total * 100)