🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.linux.programowanie
Article #72746

Re: Kalkulator z dużymi liczbami

#72746
From: szemrany
Date: Mon, 31 Aug 2015 13:58
23 lines
1929 bytes
On Mon, 31 Aug 2015 13:25:48 +0000 (UTC), orcus@pwr.wroc.pl wrote:

> python
> 
>>>> 2**129
> 680564733841876926926749214863536422912L
>>>> hex(2**129)
> '0x200000000000000000000000000000000L'
>>>> bin(2**129)
> '0b1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
> 
> Nie wiem czy pod Windowsem zachowuje się tak samo.

Hmm.. nie znam Pythona, ale to mnie zaciekawiło, rozumiem, że można go
używać w trybie konsolowym w ten sposób?
A operacje bitowe też tak prosto się wykonuje? Np. negacje czy iloczyn
logiczny dwóch wartości? 

-- 
howgh
szemrany
"Trzeba z żywymi naprzód iść, po życie sięgać nowe,
a nie w uwiędłych laurów liść z uporem stroić głowę"
Technical Details
Message-ID: <8l84yorce9hj.munac44v5wq7.dlg@40tude.net>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.cyf-kr.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!feeder.erje.net!1.eu.feeder.erje.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!81.171.118.61.MISMATCH!peer01.fr7!news.highwinds-media.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-02.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
References: <160qkk8c0vpog.39uoz22jjwry$.dlg@40tude.net> <slrnmu8les.os1.orcus@orcus.wcss.wroc.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.cyf-kr.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!feeder.erje.net!1.eu.feeder.erje.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!81.171.118.61.MISMATCH!peer01.fr7!news.highwinds-media.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-02.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
From: szemrany <szemrany@offline.off>
Subject: Re: Kalkulator z dużymi liczbami
Newsgroups: pl.comp.os.linux.programowanie
User-Agent: 40tude_Dialog/2.0.15.84
MIME-Version: 1.0
Sender: no@please.no
References: <160qkk8c0vpog.39uoz22jjwry$.dlg@40tude.net> <slrnmu8les.os1.orcus@orcus.wcss.wroc.pl>
Date: Mon, 31 Aug 2015 15:58:01 +0200
Message-ID: <8l84yorce9hj.munac44v5wq7.dlg@40tude.net>
Lines: 23
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 89-71-60-55.dynamic.chello.pl
X-Trace: 1441029483 unt-rea-b-01.news.neostrada.pl 8370 89.71.60.55:11075
X-Complaints-To: abuse@news.neostrada.pl
X-Received-Bytes: 1627
X-Received-Body-CRC: 1538416641
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit