Что происходит с тегированным кадром если он приходит на неуправляемый свич?
И можно ли построить VLAN если промежуточные свичи неуправляемые?
Зелёные светодиоды не добавляют, якобы зеленый не нужен для фотосинтеза, хотя есть статьи утверждающие обратное.
Но если бы в фитолампы добавляли зелёные светодиоды, был бы более полный спектр, уже ближе к солнечному свету, и приятен для глаз, что расширяет возможности применения фитоламп в быту.
Почему бы не сделать RGB лампу, откалибровать ее на 4500K нейтрального белого, и так же дать возможность подстройки, к примеру 3000-6000K.
import os
# path to main directory
path = '/your/path'
# table
files = {
'file_1.txt': 'dir_1',
'file_2.txt': 'dir_1/dir_2',
'file_3.txt': 'dir_1/dir_2/dir_3'
# others
}
# moving files
for file, directory in files.items():
path_file = os.path.join(path, file)
path_dir = os.path.join(path, directory)
# checking for existence and creating directories if needed
if not os.path.exists(path_dir):
os.makedirs(path_dir)
# checking for existence of the file in the target directory
if os.path.exists(os.path.join(path_dir, file)):
print(f"File {file} already exists in directory {directory}, skip.")
else:
os.rename(path_file, os.path.join(path_dir, file))
print(f"The {file} file has been moved to a folder {directory}, success.")
# example moving:
#
# /your/path
# |-- /dir_1/file_1.txt
# |-- /dir_1/dir_2/file_2.txt
# |-- /dir_1/dir_2/dir_3/file_3.txt
Если запускать через cmd не работает