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
% !TeX program = xelatex | |
%% Преамбула TeX-файла | |
% 1. Стиль и язык | |
\documentclass[utf8x, 14pt]{G7-32} % Стиль (по умолчанию будет 14pt) | |
% Остальные стандартные настройки | |
\sloppy | |
% Настройки стиля ГОСТ 7-32 |
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
def fib(n): | |
first = 1 | |
second = 2 | |
yield first | |
for i in range(n - 1): | |
yield first | |
first, second = second, first + second | |
for i in fib(10): |