DoubleLinkedList-1.0.4
توضیحات
This package is double linked list
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | DoubleLinkedList-1.0.4 |
| نام | DoubleLinkedList |
| نسخه کتابخانه | 1.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ivantsov Timofey |
| ایمیل نویسنده | TimofeyIvantsov@yandex.ru |
| آدرس صفحه اصلی | https://github.com/Timofey-Ivantsov |
| آدرس اینترنتی | https://pypi.org/project/DoubleLinkedList/ |
| مجوز | - |
# Double Linked List 1.0.4
### Table of Contents
1. [Installation](#installation)
2. [How to use](#htu)
## Installation <a name="installation"></a>
pip install DoubleLinkedList .<br/>
## How to use <a name="htu"></a>
1. Add to your code: from DoubleLinkedList import DLinked<br/>
2. Create double linked list in this way name_of_your_list = DLinked.Linked()<br/>
3. In order to insert element in the beginning use .pushfront(element)<br/>
4. In order to insert element in the end use .pushback(element)<br/>
5. In order to delete element from the beginning use .popfront()<br/>
6. In order to delete element from the end use .popback()<br/>
7. In order to insert in any place you want use .insert(element, index_of_element)<br/>
8. In order to delete element which you want use .delete(index_of_element)<br/>
9. In order to get certain element use .get(index_of_element)<br/>
10. In order to find certain element use .find(element).<br/> If it was found, you will get index of element. Else you will get 0<br/>
11. In order to invert list from certain position to last position use .inversion(index_of_element)
12. In order to print the whole list use .dlprintf()<br/>
13. In order to print the whole list in reverse use .dlprintb()<br/>
14. In order to print certain data use .dlprint(element)<br/>
## Example <a name="installation"></a>
```python
from DoubleLinkedList import DLinked
dll = DLinked.Linked()
dll.pusback(2)
dll.pushfront(1)
dll.insert(3, 2)
dll.find(2)
dll.get(3)
dll.dlprintf()
dll.dlprintb()
dll.inversion(1)
dll.delete(2)
dll.popfront()
dll.popback()
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.0 | Python |
نحوه نصب
نصب پکیج whl DoubleLinkedList-1.0.4:
pip install DoubleLinkedList-1.0.4.whl
نصب پکیج tar.gz DoubleLinkedList-1.0.4:
pip install DoubleLinkedList-1.0.4.tar.gz