programming-language配列基本操作clear(カラにする)On this pageclear(カラにする) Python pydel(items[:]) Swift swiftitems.removeAll() TypeScript tsitems.length = 0 Bash bashitems=() Ruby rbitems.clear() 📩 ご意見・ご感想はこちらから