projekty
/
krypto.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36569b5
)
lepsi formatovani indexu
author
Tomas Musil
<tomik.musil@gmail.com>
Thu, 31 May 2012 16:42:10 +0000
(18:42 +0200)
committer
Tomas Musil
<tomik.musil@gmail.com>
Thu, 31 May 2012 16:42:10 +0000
(18:42 +0200)
koincidence.py
patch
|
blob
|
history
diff --git
a/koincidence.py
b/koincidence.py
index
fd6277a
..
5c943ec
100644
(file)
--- a/
koincidence.py
+++ b/
koincidence.py
@@
-32,7
+32,7
@@
def index_rozkladu(text, deleni):
def tabulka_indexu(text):
"""Vypise tabulku prumernych indexu pro ruzna deleni textu."""
- return '\n'.join(['{1:>2} {0:.3%}'.format(
+ return '\n'.join(['{1:>2} {0:
>7
.3%}'.format(
index_rozkladu(text, d), d) for d in range(1, 11)])
def rozklad(text, deleni):