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
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
W3Schools
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
https://www.online-python.com/
ابزار خیلی خوبی است برای اجرای آنلاین کد های پایتون. با قابلیت های خیلی خوب.
#پایتون
#python
@Pairen_Peogrammers
ابزار خیلی خوبی است برای اجرای آنلاین کد های پایتون. با قابلیت های خیلی خوب.
#پایتون
#python
@Pairen_Peogrammers
Online-Python
Online Python - IDE, Editor, Compiler, Interpreter
Build and Run your Python code instantly. Online-Python is a quick and easy tool that helps you to build, compile, test your python programs.
Web Scraping with Python
Link: https://www.google.com/amp/s/www.edureka.co/blog/web-scraping-with-python/amp/
#آموزش
#پایتون
#python
@Pairen_Programmers
Link: https://www.google.com/amp/s/www.edureka.co/blog/web-scraping-with-python/amp/
#آموزش
#پایتون
#python
@Pairen_Programmers
👍2
توضیحاتی دربارهی 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
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
W3Schools
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.