☰
Debian Codegraph
@
1.4.2+ds1-1
1.4.1+ds1-7
/
/
data
/
scripts
/
reverse.py
☽
☼
data/scripts/reverse.py
code
plain
raw
symbols
SCIP
Apache-2.0
2010-2026, BYVoid <
[email protected]
>
debian/copyright
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
4
import
sys
5
6
from
common
import
reverse_items
7
8
if
len
(sys.
argv
) !=
3
:
9
print
(
"Reverse key and value of all pairs"
)
10
print
((
"Usage: "
, sys.
argv
[
0
],
"[input] [output]"
))
11
exit
(
1
)
12
13
reverse_items
(sys.
argv
[
1
], sys.
argv
[
2
])