Skip to content

Latest commit

 

History

History
41 lines (35 loc) · 705 Bytes

README-EN.md

File metadata and controls

41 lines (35 loc) · 705 Bytes

PyTable

Introduction

A data structure which is similar to Map in JavaScript
(This project is not completed yet, it probably will be finished around July 15th)

Usage

  • Initialize
# Every element appears in a key-value form
myTable = Table([
    ['name', 'Lemonix'],
    ['age', 13],
    [1, 2] # Numbers can also be keys
])
  • Get Value
myTable.get('name') # Lemonix
myTable.age # 13
myTable.get(1) # 2
  • Add/append element
myTable.add(['number', 7355608])
  • Clear Table
myTable.clear()
  • Get every key or value
myTable.keys # key
myTable.values # value

If you want to see more usages, please look at the source code.