/usr/share/doc/zh-autoconvert/percent.py is in zh-autoconvert 0.3.16-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #!/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)
|