Empty list in Python

To empty list,
list = range(10)
del list[:]
honestly I do not fully understand how it works, but it works.

Comments

Popular posts from this blog

Calling OpenCV functions via Cython from Python 3.X.

How to update lookup fileld of Kintone using pykintone

Showing CPU/Memory usage on tmux status bar(tmuxのステータスバーにCPUとMemoryの使用状況を表示する)