Telegram Group & Telegram Channel
کاربرد (...) در پایتون

در هنگام نگارش، بسیاری از اوقات پیش می آید که به قرینه ادامه جمله حذف می شود. برای مثال «زبان های برنامه نویسی متداول عبارتند از پایتون، جاوا، سی ، R و ...». علامت سه نقطه (یا همان وغیره خودمان!) نشان دهنده این است که کلمه یا عبارتی به تناسب قرینه حذف شده است که در انگیسی به آن Ellipsis گفته می شود.
گفتیم پایتون بسیار به زبان انسان نزدیک است. از این رو شما می توانید از ... یا Ellipsis در پایتون استفاده کنید. Ellipsis در پایتون سه کارکرد اصلی دارد. اول در slicing در Numpy ، دوم در عبارت های تکرار و سوم در تعریف تابع.
در تصویر این پست سه مثال از کاربرد Ellipsis تقدیم می شود.



#آموزش_پایتون
#پایتون_مالی
#سه_نقطه

#Ellipsis


@python4finance



tg-me.com/python4finance/539
Create:
Last Update:

کاربرد (...) در پایتون

در هنگام نگارش، بسیاری از اوقات پیش می آید که به قرینه ادامه جمله حذف می شود. برای مثال «زبان های برنامه نویسی متداول عبارتند از پایتون، جاوا، سی ، R و ...». علامت سه نقطه (یا همان وغیره خودمان!) نشان دهنده این است که کلمه یا عبارتی به تناسب قرینه حذف شده است که در انگیسی به آن Ellipsis گفته می شود.
گفتیم پایتون بسیار به زبان انسان نزدیک است. از این رو شما می توانید از ... یا Ellipsis در پایتون استفاده کنید. Ellipsis در پایتون سه کارکرد اصلی دارد. اول در slicing در Numpy ، دوم در عبارت های تکرار و سوم در تعریف تابع.
در تصویر این پست سه مثال از کاربرد Ellipsis تقدیم می شود.



#آموزش_پایتون
#پایتون_مالی
#سه_نقطه

#Ellipsis


@python4finance

BY Python4Finance




Share with your friend now:
tg-me.com/python4finance/539

View MORE
Open in Telegram


Python4Finance Telegram | DID YOU KNOW?

Date: |

Telegram has exploded as a hub for cybercriminals looking to buy, sell and share stolen data and hacking tools, new research shows, as the messaging app emerges as an alternative to the dark web.An investigation by cyber intelligence group Cyberint, together with the Financial Times, found a ballooning network of hackers sharing data leaks on the popular messaging platform, sometimes in channels with tens of thousands of subscribers, lured by its ease of use and light-touch moderation.

The Singapore stock market has alternated between positive and negative finishes through the last five trading days since the end of the two-day winning streak in which it had added more than a dozen points or 0.4 percent. The Straits Times Index now sits just above the 3,060-point plateau and it's likely to see a narrow trading range on Monday.

Python4Finance from sg


Telegram Python4Finance
FROM USA