🔣مختلط اعداد مختلط با یک "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
The message was not authentic, with the real Zelenskiy soon denying the claim on his official Telegram channel, but the incident highlighted a major problem: disinformation quickly spreads unchecked on the encrypted app. Ukrainian forces have since put up a strong resistance to the Russian troops amid the war that has left hundreds of Ukrainian civilians, including children, dead, according to the United Nations. Ukrainian and international officials have accused Russia of targeting civilian populations with shelling and bombardments. Although some channels have been removed, the curation process is considered opaque and insufficient by analysts. Stocks dropped on Friday afternoon, as gains made earlier in the day on hopes for diplomatic progress between Russia and Ukraine turned to losses. Technology stocks were hit particularly hard by higher bond yields. The original Telegram channel has expanded into a web of accounts for different locations, including specific pages made for individual Russian cities. There's also an English-language website, which states it is owned by the people who run the Telegram channels.
from us