Skip to content

Commit 6364b21

Browse files
committed
fix: fixed data_types name
1 parent 93398d3 commit 6364b21

2 files changed

Lines changed: 51 additions & 1 deletion

File tree

File renamed without changes.

notes/test.py

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,51 @@
1-
x = 113
1+
# class Square:
2+
# def __init__(self, side = 2):
3+
# self.side = side
4+
#
5+
# @property
6+
# def area(self):
7+
# return self.side ** 2
8+
#
9+
# def __str__(self):
10+
# return f"Квадрат со стороной {self.side} имеет площадь {self.area}"
11+
#
12+
# def __repr__(self):
13+
# return f"Значения квадрата:\nside = {self.side}"
14+
#
15+
# class Rectangle(Square):
16+
# def __init__(self, side = 2, length = 5):
17+
# super().__init__(side)
18+
# self.length = length
19+
#
20+
# @property
21+
# def area(self):
22+
# return self.side * self.length
23+
#
24+
# def __str__(self):
25+
# return f"Прямоугольника со стороной от квадрата {self.side} и шириной {self.length} имеет площадь {self.area}"
26+
#
27+
# def __repr__(self):
28+
# return f"Значения прямоугольника:\nside = {self.side} (Наследование от квадрата)\nlength = {self.length}"
29+
#
30+
#
31+
# lysis = Square()
32+
# user_lysis = Square(4)
33+
#
34+
# enigma = Rectangle()
35+
# user_enigma = Rectangle(4)
36+
#
37+
# print("." * 75)
38+
# print(user_lysis, repr(lysis), sep="\n")
39+
#
40+
# print(user_enigma, repr(enigma), sep="\n")
41+
from fontTools.misc.cython import returns
42+
43+
x = {1: "Apple", 2: "Pineapple", 3: "Cherry"}
44+
45+
try:
46+
# print(x.get(4))
47+
result = 1 / 0
48+
except ZeroDivisionError:
49+
print("Ошибка синтаксиса")
50+
except Exception:
51+
print("Какая-то ошибка")

0 commit comments

Comments
 (0)