- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path21.py
More file actions
Latest commit
29 lines (23 loc) · 545 Bytes
/
Copy path21.py
File metadata and controls
29 lines (23 loc) · 545 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
importzlib
importbz2
defmain():
first_step()
deffirst_step():
file=open("game/package.pack", "rb")
bs=file.read()
result=""
whileTrue:
ifbs.startswith(b"x\x9c"):
bs=zlib.decompress(bs)
result+=" "
elifbs.startswith(b"BZ"):
bs=bz2.decompress(bs)
result+="#"
elifbs.endswith(b"\x9cx"):
bs=bs[::-1]
result+="\n"
else:
break
print(result)
if__name__=="__main__":
main()