This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Plex Media Server service | |
Wants=rclone.service | |
After=rclone.service | |
[Service] | |
ExecStart=sudo docker start plex | |
ExecStop=sudo docker stop plex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: cp1251 | |
import random | |
import timeit | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
def do_lists(a): | |
s = 0 | |
for i in range(n): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: cp1251 | |
import random | |
import timeit | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
def do_lists(a): | |
s = 0 | |
for i in range(n): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Список вопросов к зачету по МОСИИ | |
1. Понятие «искусственного интеллекта» | |
2. Цели и возможности «искусственного интеллекта» | |
3. Этапы развития «машинного интеллекта» | |
4. Подходы к проектированию систем ИИ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: cp1251 | |
import pandas as pn | |
# block 1 | |
with open("titanic.csv") as f: # открываем данные титаника | |
data = f.read() | |
df = pn.read_csv("titanic.csv") # читаем данные | |
print("Количество выживших:", sum(df['Survived'])) | |
all_women_children = df[(df.Sex == "female") | (df.Age < 18)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: cp1251 | |
import random | |
import timeit | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
def do_lists(a): | |
s = 0 | |
for i in range(n): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: cp1251 | |
import numpy as np | |
import sys | |
def read_matrix(type=float): | |
n = int(input("Введите n: ")) | |
m = int(input("Введите m: ")) | |
a = [] | |
for i in range(n): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
# 1 | |
print("1:") | |
a = np.random.randint(0, 100, (4, 4)) # двумерный массив целых чисел от 0 до 99 размером 4x4 | |
print(a) | |
print(a[2][3]) | |
# 2 | |
print("2:") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import sys | |
# 1 | |
print("1:") | |
a = np.random.randint(0, 100, (3, 4)) # двумерный массив целых чисел от 0 до 99 размером 3x4 | |
print(a) | |
# 2 | |
print("2:") | |
print(a[1][2]) # строка 1, 2 столбец |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- encoding: cp1251 -*- | |
from functools import reduce | |
# 1.2 | |
L = list(map(int, input("Введите список L:\n").split())) | |
T = [x for x in L[1::2] if not x % 3] # L[1::2] берём с первой позиции и ч/з два(нечётные позиции) и если остаток от деления на 3 равен 0 | |
print("T:", *T) # звёздочка превращает "массив" в список аргументов, т.е. если T = [1, 2], то print("T:", 1, 2) | |
L = list(map(int, input("Введите список L:\n").split())) |
NewerOlder