aboutsummaryrefslogtreecommitdiffstats
path: root/sejmanas.py
blob: 52e0282648718823baf7f95fce6e148461cd97ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# uso: 
# python3 sejmanas.py 1660 | xclip -sel c
# (donde 1660 es el número de sejmana actual)
import sys

first = 1655
s = int(sys.argv[1])
# s=1660
#print('<p id="count" aria-hidden="true">')
for i in range(1,3900):
    if i<=s:
        if i<first:
            print('.',end='')
        else:
            print('<a href="#sjm-',i,'" title="sjm-',i,'">.</a>',sep='',end='')
    else:
        print('*',end='')

#print('</p>')
Un proyecto texto-plano.xyz