Definitionپێناسە
A whose bytes are not character codes but other data: a picture, sound, video, a compressed archive, a program or a Word document. You need the right program to open it, and one changed can damage it. In Python it is opened with b in the mode ("rb", "wb") and read as bytes.
کە ژمارەی کۆدی نین، بەڵکو ترن: وێنە، دەنگ، ڤیدیۆ، پەستێنراو، یان بەڵگەنامەی Word. بۆ کردنەوەی گونجاوت پێویستە و گۆڕینی تەنها یەک دەتوانێت تێکی بدات. لە بە b لە دۆخەکەدا دەکرێتەوە ("rb"، "wb") و وەک دەخوێنرێتەوە.
Exampleنموونە
Every PNG picture starts with the same 8 bytes; opened as text, Python cannot decode the first one.
هەموو وێنەیەکی PNG بە هەمان 8 دەست پێ دەکات؛ ئەگەر وەک دەق بکرێتەوە، ناتوانێت یەکەمیان بخوێنێتەوە.
with open("photo.png", "rb") as f:
print(f.read(8)) # b'\x89PNG\r\n\x1a\n'Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر
فایلە دووانییەکە، فایلە دووانییەکان، فایلێکی دووانی، فایلی دووانیی
Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
Built on the registry's binary «دووانی». Proposed by the py-files writer (PYDW1).