Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これは C# ではどのように見えるでしょうか?
checksum = hashlib.sha256(hashlib.sha256(address).digest()).digest()[:4]
特に最後の部分 [:4] どういう意味ですか?
それはスライスです。リスト内の 0 から 4 (両端を含む) までのすべての位置を取得します。
>>> [1,2,3,4,5,6,7,8][:4] [1, 2, 3, 4]