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

TGINSIGHT SIMILAR POSTS

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

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

Первая директория в sys.path 🔸 Когда вы запускаете Python-интерпретатор в интерактивном режиме, в системные пути (sys.path) в самое начало добавляется текущая рабочая директория >>> for path in sys.path: ... print(f'"{path}"') "" "/usr/lib/python37.zip" "/usr/lib/python3.7" ... Первая строка пустая, что и означает текущую рабочую директорию. 🔸 Если вы запускаете интерпретатор передавая скрипт как аргумент, то история получается иная. На первом месте будет директория в которой располагается скрипт. А текущая рабочая директория игнорируется. Пишем скрипт с таким содержанием: # script.py import sys for path in sys.path: print(f'"{path}"') Запускаем python3 /home/user/dev/script.py Получаем "/home/user/dev" "/usr/lib/python37.zip" "/usr/lib/python3.7" ... 🔸 Если вы запускаете скрипт по имени модуля то на первом месте будет домашняя директория текущего юзера python3 -m script "/home/user" "/usr/lib/python37.zip" "/usr/lib/python3.7" ... Скрипт должен быть доступен для импорта На что это влияет? На видимость модулей для импорта. Если вы ждёте, что, запустив скрипт по пути, сможете импортировать модули из текущей рабочей директории, то вы ошибаетесь. Придётся добавлять путь os.getcwd() в sys.path самостоятельно или заранее объявлять переменную PYTHONPATH. #basic

Hashtags

Резултати

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

Пребарај: #offchainlabs

当前筛选 #offchainlabs清除筛选
Venture Village Wall 🦄

@venturevillagewall · Post #4360 · 11.03.2025 г., 07:00

Offchain Labs Plans ARB Token Buy Strategy Offchain Labs is set to implement a strategic purchase plan for acquiring ARB tokens gradually. In the backdrop, Bitcoin fell under $77,000, ETH dropped to $1,750, and the crypto market faced nearly $1 billion in liquidations. The U.S. stock market also faced significant losses, with Tesla shares plunging 15% in a day, following tariff announcements by Donald Trump. The overall market cap dropped by $4 trillion since the announcements. Read more #OffchainLabs#ARB#Crypto#Bitcoin#Ethereum#Tesla#Stocks#MarketCrash#Liquidation#DAI#ETH#VC

Crypto M - Crypto News

@CryptoM · Post #65085 · 10.04.2026 г., 22:56

🚀 Offchain Labs Co-Founder Ed Felten on the Future of Layer 2s Amid Ethereum's Mainnet Scaling Offchain Labs co-founder Ed Felten expressed confidence in the continued relevance of layer 2 solutions like Arbitrum, even as Ethereum focuses on scaling its mainnet. According to NS3.AI, Felten highlighted that layer 2s can maintain their competitiveness by providing faster response times, reduced block times, and increased throughput. #OffchainLabs#EdFelten#Layer2#Ethereum#Arbitrum#Scaling#Blockchain#NS3AI#Throughput#ETH#ARB

Venture Village Wall 🦄

@venturevillagewall · Post #3599 · 20.12.2024 г., 15:25

DuckChain Raises $5M for Web3 DuckChain, a consumer layer for Web3, successfully secured $5M in funding from notable investors including dao5, Offchain Labs, Kenetic, and others. #DuckChain#Web3#Funding#dao5#OffchainLabs#Kenetic#DWFVentures#OakGroveVentures#SkylandVentures#GeekCartel#GateLabs#PrestoLabs#Camelot#Quantstamp

Venture Village Wall 🦄

@venturevillagewall · Post #3600 · 20.12.2024 г., 16:00

DuckChain Secures $5M Funding TON’s consumer layer for Web3 DuckChain has successfully raised $5 million in a funding round with participation from multiple investors including dao5, Offchain Labs, DWF Ventures, and others. #DuckChain#Web3#Funding#TON#dao5#OffchainLabs#DWF#Investors#Ventures#Kenetic#Skyland#GeekCartel#GateLabs#PrestoLabs#Camelot#Quantstamp#Blockchain#Finance#Investment#Technology