X-Received: by 2002:ac8:66d8:: with SMTP id m24mr31034187qtp.39.1629757654788; Mon, 23 Aug 2021 15:27:34 -0700 (PDT) X-Received: by 2002:ac8:7194:: with SMTP id w20mr31401207qto.217.1629757654594; Mon, 23 Aug 2021 15:27:34 -0700 (PDT) Path: csiph.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: pl.comp.programming Date: Mon, 23 Aug 2021 15:27:34 -0700 (PDT) In-Reply-To: <6fba279b-cdb5-42b9-9d9e-bc24e7198ecbn@googlegroups.com> Injection-Info: google-groups.googlegroups.com; posting-host=77.169.12.87; posting-account=5sNFBgoAAAAxlae8lv99mPyGsDs6ynwB NNTP-Posting-Host: 77.169.12.87 References: <6a2d60cf-5d52-4f70-a0bb-67ac51f2ea47n@googlegroups.com> <0b0e0278-0506-4691-8051-1f73a327e87an@googlegroups.com> <1aabf0e1-8c01-4479-90fc-62d1026d221cn@googlegroups.com> <59524bbe-00b1-4756-b359-19bb000e8641n@googlegroups.com> <2aec1845-1ec1-4e83-835a-ccc9aa089c23n@googlegroups.com> <48a87319-4f87-4ace-b9e1-e8c9842514can@googlegroups.com> <5af4b1e3-4d68-4ea8-a5cf-7d2b1075041cn@googlegroups.com> <680b4111-0c0b-4406-ae78-fc27fa1a545an@googlegroups.com> <08cd0111-4022-41af-a03a-a3a4a6307ef6n@googlegroups.com> <4a215489-d501-49d5-ade6-cf771ffee901n@googlegroups.com> <7ccd7613-9d6d-4d46-b68f-1db4e9d7a5e3n@googlegroups.com> <9082e2ac-cd7d-436d-80a8-7d12109d3297n@googlegroups.com> <227b1c0e-5d3c-4323-a374-de316aec2ffcn@googlegroups.com> <11f92832-5699-4cf9-be0d-412f9248f4den@googlegroups.com> <97a8c494-64a8-46c0-a17a-114d86aa94d9n@googlegroups.com> <03af61d9-e808-4daf-82b1-82e45f41372dn@googlegroups.com> <8c2590d8-1517-49f7-b95e-40e5fcaf830bn@googlegroups.com> <268d32c4-3f2f-47cd-9544-d15a448f801cn@googlegroups.com> <867ac372-f472-44ea-9346-d99449427a7fn@googlegroups.com> <21f1661f-f0bc-40af-819b-67e491912f03n@googlegroups.com> <1fcfa96a-47ba-4e47-8eea-f9df6a87099bn@googlegroups.com> <715772df-0454-47c9-8dba-ea9f1feb4f77n@googlegroups.com> <18a7e41b-e819-41dc-8749-f4073068d368n@googlegroups.com> <9d144f96-4b9c-4b36-b3d3-65f57d60f94cn@googlegroups.com> <585d821d-905b-4480-ae56-23162c4d697fn@googlegroups.com> <412e4c92-95f0-4066-874c-7bcaf7fdc527n@googlegroups.com> <1b9afe1b-a27d-4769-87af-9731c698bd2an@googlegroups.com> <516761da-c103-438e-89a4-453b5fd105acn@googlegroups.com> <8984b339-4547-45ec-86fd-948cd68fd7f1n@googlegroups.com> <5ef2da7b-8434-4cb9-892c-fbee82a6d058n@googlegroups.com> <6fba279b-cdb5-42b9-9d9e-bc24e7198ecbn@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <678a6fca-e187-47c4-bdb2-ecbcddac7648n@googlegroups.com> Subject: =?UTF-8?Q?Re=3A_Jak_zrobi=C4=87_test_za_pomoc=C4=85_PractRand=3F?= From: "osobli...@gmail.com" Injection-Date: Mon, 23 Aug 2021 22:27:34 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Lines: 31 Xref: csiph.com pl.comp.programming:34579 poniedzia=C5=82ek, 23 sierpnia 2021 o=C2=A023:46:50 UTC+2 M.M. napisa=C5=82= (a): > On Monday, August 23, 2021 at 11:19:41 PM UTC+2, osobli...@gmail.com wrot= e:=20 > > Widz=C4=99 jeszcze mo=C5=BCliwo=C5=9B=C4=87 problemu z tym jak poci=C4= =85=C5=82em liczby 128-bitowe:=20 > > split=3D[(w >> x) & 0xFFFFFFFF for x in reversed(range(0, 128, 32))]=20 > >=20 > > binary =3D struct.pack('qqqq', split[0], split[1], split[2], split[3])= =20 > > Poci=C4=85=C5=82em je na liczby 32 bitowe i w strukt.pack u=C5=BCy=C5= =82em formatu C Type nazwanego 'q', kt=C3=B3ry oznacza long long:=20 > >=20 > > https://docs.python.org/3/library/struct.html=20 > >=20 > > Je=C5=BCeli long long mo=C5=BCe by=C4=87 d=C5=82u=C5=BCszy ni=C5=BC to = co tam umieszczam, struct.pack mo=C5=BCe wype=C5=82nia=C4=87 reszt=C4=99 np= . zerami. Ale long long ma chyba w=C5=82a=C5=9Bnie 32-bity. > Nie wiem, to mo=C5=BCe tam Ciebie co=C5=9B zainspiruje:=20 >=20 > https://stackoverflow.com/questions/4670350/how-do-i-write-a-long-integer= -as-binary-in-python=20 >=20 > Pozdrawiam Mam b=C5=82=C4=85d: "ModuleNotFoundError: No module named 'bitarray'" kt=C3=B3rego nie da si=C4=99 rozwi=C4=85za=C4=87. Zainstalowa=C5=82em bitar= ray i dalej mam ten problem. Google nie ma to wi=C4=99cej rozwi=C4=85za=C5= =84.