TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #203 · 18 јан.

Бывает начинающие в процессе обучения создают файлы с именем модуля который они изучают. В результате на тестовых запусках ничего не работает😱 Всё потому, что появилась коллизия имён. Например, изучаете вы модуль datetime, и создаёте с таким именем файл (ну логично же😄) прямо в рабочей директории. Потом, при попытке импортировать datetime модуль, из-за приоритета импорта будет импортирован файл из рабочий директории а не оригинальная библиотека. Ведь имя файла это суть имя модуля! А знаете ли вы, что не все стандартные модули можно так перезаписать? Коллизии имён не подвержены builtin модули. Они всегда стоят на первом месте в приоритете импорта, поэтому их нельзя заменить. Полный список таких модулей можно посмотреть в списке sys.builtin_module_names. То есть, вы сломаете весь Python если назовёте свой модуль os или site, но если назовёте time или gc то ничего страшного не случится))) Тем не менее, никогда не называйте модули уже занятыми именами!!!⚠️ Я всегда рекомендую всем своим файлам делать именной префикс из 2-3 символов. Например я называю свои проекты так: pw_project_name pw_ui_tools.py pw_something/main.py Либо под ситуацию tst_scriptname.py (не "test" чтобы не подхватывал pytest) dbg_script.py maya_ui.py hou_menu_tools.py И искать проще, и коллизий нет. #tricks#basic

Резултати

Пронајдени 4 слични објави

Пребарај: #buyrating

当前筛选 #buyrating清除筛选
Crypto M - Crypto News

@CryptoM · Post #65143 · 11.04.2026 г., 12:05

🚀 Wall Street Analysts Predict MSTR Stock to Double This Year Most Wall Street analysts anticipate that the stock price of Michael Saylor's company, MSTR, will more than double this year. According to Odaily, the majority of analysts maintain a buy rating, describing it as one of the most undervalued companies globally. #WallStreet#MSTR#StockPrediction#MichaelSaylor#BuyRating#UndervaluedCompanies

Crypto M - Crypto News

@CryptoM · Post #65130 · 11.04.2026 г., 09:03

🚀 TD Cowen Analyst Lowers Target Price for MicroStrategy TD Cowen analyst Lance Vitanza has revised the target price for Bitcoin reserve company MicroStrategy (MSTR) from $440 to $350, while maintaining a buy rating. According to Odaily, this adjustment reflects the analyst's updated assessment of the company's financial outlook. #TDCowen#Analyst#TargetPrice#MicroStrategy#Bitcoin#MSTR#FinancialOutlook#BuyRating#BTC

Crypto M - Crypto News

@CryptoM · Post #64767 · 09.04.2026 г., 20:52

🚀 Analyst Lance Vitanza Initiates Buy Ratings on Three Treasury Companies Lance Vitanza from TD Cowen has initiated coverage on Nakamoto, SharpLink Gaming, and Strive with Buy ratings. According to NS3.AI, Vitanza has set price targets of $1, $16, and $26 for these companies, respectively. He suggests that these treasury firms have the potential to outperform spot crypto exchange-traded products, provided that cryptocurrency prices recover and the companies continue to increase their token holdings per share. #LanceVitanza#TD Cowen #Nakamoto#SharpLinkGaming#Strive#BuyRating#TreasuryCompanies#Crypto#TokenHoldings#PriceTargets#BTC

Crypto M - Crypto News

@CryptoM · Post #65373 · 13.04.2026 г., 02:56

🚀 Daiwa Raises Gu Ming's Target Price to HKD 36 On April 13, according to Jin10, Daiwa released a research report raising the target price of Gu Ming (01364.HK) from HKD 35 to HKD 36, maintaining a 'buy' rating. This corresponds to a forecasted price-to-earnings ratio of 22 times for 2026. Daiwa noted that Gu Ming's takeaway proportion has decreased from a peak of 60% in the third quarter of last year to below 50%. The management expects this trend to continue, aiming to improve franchisee profitability through initiatives such as dine-in promotions, extending morning business hours, and increasing coffee sales. The firm has also raised its earnings per share forecast for Gu Ming from 2026 to 2028 by 6% to 12%. #Daiwa#GuMing#TargetPrice#HKD36#BuyRating#FranchiseeProfitability#EarningsForecast#TakeawayProportion#CoffeeSales#MorningBusinessHours