PAIREN (Programming Channel)
97 subscribers
327 photos
60 videos
31 files
271 links
SW4gVGhlIE5hbWUgT2YgR29k
به نام خدا

کانال برنامه نویسی پایرن برای تمام دوستداران برنامه نویسی. رونوشت(Copy) کاملاً آزاد است.

آدرس گیت‌هاب:
https://github.com/PAIREN1383

Owner: @V_d_P_h_K
Download Telegram
Python Collections (Arrays)
There are four collection data types in the Python programming language:
List is a collection which is ordered and changeable. Allows duplicate members.
Tuple is a collection which is ordered and unchangeable. Allows duplicate members.
Set is a collection which is unordered, unchangeable*, and unindexed. No duplicate members.
Dictionary is a collection which is ordered** and changeable. No duplicate members.
*Set items are unchangeable, but you can remove and/or add items whenever you like.
**As of Python version 3.7, dictionaries are ordered. In Python 3.6 and earlier, dictionaries are unordered.
When choosing a collection type, it is useful to understand the properties of that type. Choosing the right type for a particular data set could mean retention of meaning, and, it could mean an increase in efficiency or security.


منبع: w3schools.com


#پایتون
#python


@Pairen_Programmers
توضیحاتی درباره‌ی PIP:
Link: https://www.w3schools.com/python/python_pip.asp

خلاصه:
دستور نگاه کردن نسخه pip:
pip --version

دستور نصب پکیج:
pip install "package name"

دستور حذف پکیج:
pip uninstall "package name"

دستور دیدن فهرست پکیج های نصب شده:
pip list

پ.ن: قاعدتاً وقتی شما دستور pip list رو میزنید با اسم setuptools هم مواجه میشید که احتمالاً نمی‌دونید چی هست و از کجا اومده.
در پایین توضیح داده شده که setuptools چی هست.

setuptools is a package used by many other packages to handle their installation from source code (and tasks related to it).

It is generally used extensively for non-pure-Python packages, which need some compilation/installation step before being usable (think packages containing extensions written in C); setuptools factors away some of the most common operations used in this process (compiling C files with options compatible with the current Python installation, running Cython if required, provide some vaguely coherent set of commands/options for setup.py files, ...) as well as providing some tools used during Python packages development.
...
Link: https://stackoverflow.com/questions/41216875/what-is-the-purpose-of-python-setuptools

#Python
#پایتون


@Pairen_Programmers