1. Glossaryفەرهەنگی زاراوەکان
Deep copy
کۆپیی قووڵ
Proposed Kurdish term — under reviewزاراوەی پێشنیارکراو — لە ژێر پێداچوونەوەدایە

Definitionپێناسە

A copy that also copies everything inside, level by level, so the new object shares nothing with the old one. In Python, copy.deepcopy(grid) gives a whose rows are new too.

کۆپییەکە کە هەموو ئەوەی لە ناوەوەشە ئاست بە ئاست کۆپی دەکات، بۆیە نوێیەکە هیچ شتێکی لەگەڵ کۆنەکەدا هاوبەش نییە. لە Pythonـدا copy.deepcopy(grid) دەدات کە نوێن.

Exampleنموونە

Changing grid no longer changes deep.

گۆڕینی grid ئیتر deep ناگۆڕێت.

import copy
grid = [[1, 2], [3, 4]]
deep = copy.deepcopy(grid)
grid[0][0] = 99
print(deep)   # [[1, 2], [3, 4]]

Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر

کۆپییە قووڵەکە، کۆپییەکی قووڵ

Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە

کۆپی as in the registry's copy (کۆپیکردن); قووڵ (deep). Proposed.

Related termsزاراوە پەیوەندیدارەکان

Videosڤیدیۆکان

Your Lists Are Being Copied WRONG In Python (Shallow Copy VS. Deep Copy)Indently · Englishئینگلیزی · 28K viewsبینین · 1.2K likesلایک · Partبەشی 4:25–6:44 (ofلە 6:44)

Learn more inزیاتر فێربە لە