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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #60 · 31 мар.

Вторая по частоте future-функция, которую я использовал, это абсолютный импорт from __future__ import absolute_import Что она делает? Изменения, которые вносит эта инъекция описаны в PEP328 Покажу простой пример. Допустим, есть такой пакет: /my_package /__init__.py /main.py /string.py Смотрим код в my_package/main.py # main.py import string Простой пример готов) Вопрос в том, какой модуль импортируется в данном случае? Есть два варианта: 1. модуль в моём пакете my_package.string 2. стандартный модуль string И вот тут вступает в дело приоритет импортов. В Python2 порядок следующий: помимо иных источников, раньше ищется модуль внутри текущего пакета, а потом в стандартных библиотеках. Таким образом мы импортнём my_package.string. Но в Python3 это поведение изменилось. Если мы указываем просто имя пакета, то ищется именно такой модуль, игнорируя имена в текущем пакете. Если мы хотим импортнуть именно подмодуль из нашего пакета то, мы должны теперь явно это указывать. from my_package import string или относительный импорт, но с указанием пути относительно текущего модуля main from . import string Еще одной неоднозначностью меньше 😎 Подробней про импорты здесь: https://docs.python.org/3/tutorial/modules.html #2to3#pep#basic

Резултати

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

Пребарај: #rdp

当前筛选 #rdp清除筛选
GitHub 红队武器库🚨

@githubredteam · Post #82995 · 06.05.2026 г., 04:00

🚨 GitHub 监控消息提醒 🚨发现关键词:#横向#移动#RDP 📦项目名称:bandwagon-169-guide 👤项目作者:mxoc83 🛠开发语言: None ⭐Star数量: 1 | 🍴Fork数量: 0 📅更新时间: 2026-05-06 03:26:23 📝项目描述: 搬瓦工169.99套餐完整指南:配置是什么、怎么买、值不值?机房怎么选、优惠码用哪个(附各档位套餐横向对比) 🔗点击访问项目地址

GitHub 红队武器库🚨

@githubredteam · Post #82728 · 04.05.2026 г., 07:00

🚨 GitHub 监控消息提醒 🚨发现关键词:#横向#移动#RDP 📦项目名称:dmit-server-review 👤项目作者:tqmo99 🛠开发语言: None ⭐Star数量: 1 | 🍴Fork数量: 0 📅更新时间: 2026-05-04 06:22:46 📝项目描述: DMIT服务器好吗?从线路质量、硬件性能到价格套餐的完整评测:洛杉矶CN2 GIA、香港、日本机房横向对比,值不值得买一篇说清楚(附购买入门教程) 🔗点击访问项目地址

GitHub Trends

@githubtrending · Post #15209 · 09.10.2025 г., 14:30

#typescript#docker#docker_compose#linux#rdp#virtualization#windows WinBoat lets you run any Windows app on Linux with a smooth, native-like experience by running a full Windows system inside a Docker container using virtualization. It has an elegant interface and automates installation, so you just pick your settings and it handles the rest. You can run individual Windows apps seamlessly alongside Linux apps or access the full Windows desktop when needed. Your Linux files are easily shared with Windows, making file management simple. This helps you use Windows-only software on Linux without complicated setups, though it requires some system resources and setup steps like enabling virtualization and installing Docker. WinBoat is still in beta, so occasional bugs may occur. https://github.com/TibixDev/winboat

GitHub Trends

@githubtrending · Post #14894 · 02.07.2025 г., 11:30

#typescript#antd#antd_design#docker#go#golang#guacamole#rdp#react#ssh#vnc Next Terminal is a simple and secure system that lets you access and manage remote computers using protocols like RDP, SSH, VNC, Telnet, and HTTP. It is designed for businesses to record sessions, track audits, and help with compliance reporting, making IT management easier and safer. Using Next Terminal can improve security by monitoring remote access and help ensure your company meets regulatory requirements. It is user-friendly and supports multiple connection types, which saves time and effort in managing remote systems securely. Consulting your IT administrator before use is recommended for safe deployment. This tool benefits you by enhancing control and oversight of remote IT activities. https://github.com/dushixiang/next-terminal