ساختار شرطی در پایتون توجه داریم، که elif در جایی به کار می رود که بخواهیم مجددا شرط دیگری را بررسی کنیم. اگر بخواهیم برای تمام حالت های باقیمانده تصمیم بگیریم از else استفاده می کنیم. مثلا می خواهیم اگر اسم کاربر p1 یا p2 یا p3 بود پیام مناسب خود را دریافت کند و الا پیام خطا دریافت کند. حاصل چیزی شبیه زیر خواهد بود: user = "p9" if user=="p1": print("welcome p1") elif user=="p2": print("welcome p2") elif user=="p3": print("welcome p3") else: print("Error, Anonymous") #ساختار_شرطی #آموزش_پایتون
ساختار شرطی در پایتون توجه داریم، که elif در جایی به کار می رود که بخواهیم مجددا شرط دیگری را بررسی کنیم. اگر بخواهیم برای تمام حالت های باقیمانده تصمیم بگیریم از else استفاده می کنیم. مثلا می خواهیم اگر اسم کاربر p1 یا p2 یا p3 بود پیام مناسب خود را دریافت کند و الا پیام خطا دریافت کند. حاصل چیزی شبیه زیر خواهد بود: user = "p9" if user=="p1": print("welcome p1") elif user=="p2": print("welcome p2") elif user=="p3": print("welcome p3") else: print("Error, Anonymous") #ساختار_شرطی #آموزش_پایتون
The messaging service and social-media platform owes creditors roughly $700 million by the end of April, according to people briefed on the company’s plans and loan documents viewed by The Wall Street Journal. At the same time, Telegram Group Inc. must cover rising equipment and bandwidth expenses because of its rapid growth, despite going years without attempting to generate revenue.
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.Python4Finance from sa