list dictionary and set in python
list | dict | set | |
---|---|---|---|
definition | lmylist = [ ] | ||
def with a value | lmylist = ['value1','value2' ] | ||
add item | lmylist.append = ['value3' ] | ||
delete | |||
2D list | Matrix : 4 COLUMNs and X ROWs | ||
convert a list to a list[x,0,0,0] | list_all_files_and_pages = get_file_from_html_folder(htmlpath, mydebug) |
Dictionary | |
---|---|
definition | dict = { "key":"value" } |
set a key value pair | dict [ "key" ] = "value" |