Telegram Group & Telegram Channel
خصوصیات جدید پایتون 3.9
در پایتون 3.9 ویژگی های جالبی اضافه شده است. یکی از این ویژگی ها حذف پسوند یا پیشوند است. فرض کنید نام همه سهامی که در برنامه استفاده کرده اید با IR_ به معنای ایران آغاز شده است. البته پیش از این با استفاده از sliceing (مثلا چیزی مانند[2:10]) می توانستید قسمت مورد نظر را انتخاب کنید، اما خب الان با استفاده از متدهای .removeprefix و .removesuffix به راحتی می توانید پیشوند و پسوندها را حذف کنید.
ویژگی دیگر کار با دیکشنری هاست که بسیار ساده تر شده است.
در تصویر این پست این تغییرات با مثال نشان داده شده است.

#پایتون3.9
#پایتون_مالی

پایتون برای مالی در تلگرام https://www.tg-me.com/ar/Python4Finance/com.python4finance
پایتون برای مالی در بله https://ble.im/ar/Python4Finance/com.python4finance



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

خصوصیات جدید پایتون 3.9
در پایتون 3.9 ویژگی های جالبی اضافه شده است. یکی از این ویژگی ها حذف پسوند یا پیشوند است. فرض کنید نام همه سهامی که در برنامه استفاده کرده اید با IR_ به معنای ایران آغاز شده است. البته پیش از این با استفاده از sliceing (مثلا چیزی مانند[2:10]) می توانستید قسمت مورد نظر را انتخاب کنید، اما خب الان با استفاده از متدهای .removeprefix و .removesuffix به راحتی می توانید پیشوند و پسوندها را حذف کنید.
ویژگی دیگر کار با دیکشنری هاست که بسیار ساده تر شده است.
در تصویر این پست این تغییرات با مثال نشان داده شده است.

#پایتون3.9
#پایتون_مالی

پایتون برای مالی در تلگرام https://www.tg-me.com/ar/Python4Finance/com.python4finance
پایتون برای مالی در بله https://ble.im/ar/Python4Finance/com.python4finance

BY Python4Finance




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

View MORE
Open in Telegram


Python4Finance Telegram | DID YOU KNOW?

Date: |

Unlimited members in Telegram group now

Telegram has made it easier for its users to communicate, as it has introduced a feature that allows more than 200,000 users in a group chat. However, if the users in a group chat move past 200,000, it changes into "Broadcast Group", but the feature comes with a restriction. Groups with close to 200k members can be converted to a Broadcast Group that allows unlimited members. Only admins can post in Broadcast Groups, but everyone can read along and participate in group Voice Chats," Telegram added.

That growth environment will include rising inflation and interest rates. Those upward shifts naturally accompany healthy growth periods as the demand for resources, products and services rise. Importantly, the Federal Reserve has laid out the rationale for not interfering with that natural growth transition.It's not exactly a fad, but there is a widespread willingness to pay up for a growth story. Classic fundamental analysis takes a back seat. Even negative earnings are ignored. In fact, positive earnings seem to be a limiting measure, producing the question, "Is that all you've got?" The preference is a vision of untold riches when the exciting story plays out as expected.

Python4Finance from ar


Telegram Python4Finance
FROM USA