Skip to content

Commit 3c376dc

Browse files
committed
(add): begin p.2
1 parent e4ce16d commit 3c376dc

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

‎01-Python-base.tex‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
\section{Основы Python — типы, управление, функции}
2+
\subsection*{Синопсис:}
3+
4+
\paragraph*{Цель:}
5+
6+
базовый синтаксис, типы, управление потоком.
7+
8+
\paragraph*{Длительность:}
9+
1–2 недели.
10+
11+
\paragraph*{Теория(минимум):}
12+
13+
\begin{itemize}
14+
\item Динамическая типизация, \texttt{ type(), isinstance()}.
15+
\item Числа: \texttt{int} (произвольная точность), \texttt{float, complex, Decimal}.
16+
\item Строки: \texttt{str, f-strings}, методы (\texttt{split, join, strip, replace, startswith, endswith}).
17+
\item Логический тип, \texttt{None, truthy/falsy}.
18+
\item Управление: \texttt{if/elif/else, match/case (3.10+), for, while, break, continue, else} у циклов.
19+
\item Функции: \texttt{def}, параметры (позиционные, именованные, \texttt{*args, **kwargs, default}), \texttt{return, None}.
20+
\item Область видимости: \texttt{LEGB, global, nonlocal}.
21+
\item Comprehensions: \texttt{list, dict, set, generator}.
22+
\item Аннотации типов: \texttt{def f(x: int) -> str:}
23+
\end{itemize}

‎main.tex‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
\tableofcontents
1212

1313
\include{00-tools}
14-
%\include{01-basics}
14+
\include{01-Python-base}
1515
%\include{02-functions}
1616

1717
\end{document}

0 commit comments

Comments
 (0)