
## set_item {#str-str}

Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.



```python
def set_item(self, key, value):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| key | str | Item key string. |
| value | str | Item value string. |



### See Also
* module [`aspose.html.dom`](../../)
* class [`IStorage`](/html/python-net/aspose.html.dom/istorage)
