feat: вфыв
This commit is contained in:
19
test.py
19
test.py
@@ -1,9 +1,14 @@
|
||||
import struct
|
||||
import sys
|
||||
from typing import Self
|
||||
|
||||
sys.set_int_max_str_digits(-0)
|
||||
with open('Дизайн.jpg', 'rb') as rf:
|
||||
data = int.from_bytes(rf.read())
|
||||
|
||||
with open('result', 'wb') as rf:
|
||||
rf.write(data.to_bytes(length=len(str(data))))
|
||||
class A:
|
||||
@classmethod
|
||||
def test(cls) -> Self:
|
||||
return cls()
|
||||
|
||||
|
||||
class B(A):
|
||||
pass
|
||||
|
||||
|
||||
a = B.test()
|
||||
|
||||
Reference in New Issue
Block a user