🔣مختلط اعداد مختلط با یک "j" به عنوان قسمت موهومی نوشته می شوند: 🟣 مثال x = 3+5j y = 5j z = -5j
print(type(x)) print(type(y)) print(type(z)) خروجی پایتون: <class 'complex'> <class 'complex'> <class 'complex'> 🔣 تبدیل نوع می توانید با متدهای ()int()، float و ()complex یک نوع را به نوع دیگر تبدیل کنید: 🟣 مثال x = 1 # int y = 2.8 # float z = 1j # complex
❗️توجه: نمی توانید اعداد مختلط را به نوع اعداد دیگری تبدیل کنید.
🔣عدد تصادفی پایتون یک تابع تصادفی () برای ساخت یک عدد تصادفی ندارد، اما پایتون یک ماژول داخلی به نام random دارد که میتوان از آن برای ساخت اعداد استفاده کرد:
🟣 مثال ماژول تصادفی را وارد کنید و یک عدد تصادفی بین 1 و 9 نمایش دهید: import random
🔣مختلط اعداد مختلط با یک "j" به عنوان قسمت موهومی نوشته می شوند: 🟣 مثال x = 3+5j y = 5j z = -5j
print(type(x)) print(type(y)) print(type(z)) خروجی پایتون: <class 'complex'> <class 'complex'> <class 'complex'> 🔣 تبدیل نوع می توانید با متدهای ()int()، float و ()complex یک نوع را به نوع دیگر تبدیل کنید: 🟣 مثال x = 1 # int y = 2.8 # float z = 1j # complex
❗️توجه: نمی توانید اعداد مختلط را به نوع اعداد دیگری تبدیل کنید.
🔣عدد تصادفی پایتون یک تابع تصادفی () برای ساخت یک عدد تصادفی ندارد، اما پایتون یک ماژول داخلی به نام random دارد که میتوان از آن برای ساخت اعداد استفاده کرد:
🟣 مثال ماژول تصادفی را وارد کنید و یک عدد تصادفی بین 1 و 9 نمایش دهید: import random
In a message on his Telegram channel recently recounting the episode, Durov wrote: "I lost my company and my home, but would do it again – without hesitation." Telegram users are able to send files of any type up to 2GB each and access them from any device, with no limit on cloud storage, which has made downloading files more popular on the platform. Emerson Brooking, a disinformation expert at the Atlantic Council's Digital Forensic Research Lab, said: "Back in the Wild West period of content moderation, like 2014 or 2015, maybe they could have gotten away with it, but it stands in marked contrast with how other companies run themselves today." In December 2021, Sebi officials had conducted a search and seizure operation at the premises of certain persons carrying out similar manipulative activities through Telegram channels.
from in