Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Čermák Petr
Prm1
Commits
1277b069
Commit
1277b069
authored
Sep 26, 2019
by
Mareš Martin
Browse files
Různé experimenty
parents
Changes
3
Hide whitespace changes
Inline
Side-by-side
01-uvod/Makefile
0 → 100644
View file @
1277b069
all
:
x.pdf y.pdf
%.pdf
:
%.md
pandoc
-f
markdown
-t
beamer
$<
-o
$@
# Debugging output...
%.tex
:
%.md
pandoc
-f
markdown
-t
beamer
$<
-o
$@
-s
y.pdf
:
y.tex
pdflatex
$<
01-uvod/x.md
0 → 100644
View file @
1277b069
---
title
:
'
Programování
1:
Úvod
do
Pythonu'
author
:
Martin Mareš
institute
:
Katedra aplikované matematiky MFF UK
date
:
ZS
2019
theme
:
Warsaw
toc
:
false
indent
:
true
header-includes
:
\setbeamerfont{title page}{family=\rmfamily}
---
# Jak si nainstalovat Python
-
<http://www.python.org/>
-
Python 3.x (pozor, ne 2.x)
-
prostředí IDLE
-
<https://www.jetbrains.com/pycharm/>
-
mnohem pokročilejší vývojové prostředí
# Python jako kalkulačka
1+1
>>> 2
2+3*4+1
>>> 15
2+3 * 4+1
>>> 15
(2+3)*(4+1)
>>> 25
2**10
>>> 1024
2**100
>>> 1267650600228229401496703205376
# ZZZ
## Nadpis
aaa
bbb
ccc
bbb
aaa
# Druhý slajd
xyzzy
# Třetí slajd
01-uvod/y.tex
0 → 100644
View file @
1277b069
\documentclass
{
beamer
}
\usepackage
[utf8]
{
inputenc
}
\usepackage
{
palatino
}
\usetheme
{
Warsaw
}
\title
{
Programování 1: Úvod do Pythonu
}
\author
[Martin Mareš]
{
Martin Mareš
\\\texttt
{
mj@ucw.cz
}}
\institute
{
Katedra Aplikované Matematiky
\\
MFF UK Praha
}
\date
{
2019
}
\begin{document}
\setbeamertemplate
{
navigation symbols
}{}
\setbeamertemplate
{
footline
}{}
\setbeamerfont
{
title page
}{
family=
\rmfamily
}
\begin{frame}
\titlepage
\end{frame}
\def\<
{
\color
{
red
}}
\def\>
{
\color
{
black
}
>>>
\color
{
blue
}}
% ----------------------------------------------------------------------
\begin{frame}
[fragile]
{
Python jako kalkulačka: celá čísla
}
\begin{semiverbatim}
\<
1+1
\>
2
\<
2+3*4+1
\>
15
\<
2+3 * 4+1
\>
15
\<
(2+3)*(4+1)
\>
25
\<
2**10
\>
1024
\<
2**100
\>
1267650600228229401496703205376
\end{semiverbatim}
\end{frame}
% ----------------------------------------------------------------------
\begin{frame}
[fragile]
{
Python jako kalkulačka: celá čísla
}
\begin{semiverbatim}
\<
1+1
\>
2
\<
2+3*4+1
\>
15
\<
2+3 * 4+1
\>
15
\<
(2+3)*(4+1)
\>
25
\<
2**10
\>
1024
\<
2**100
\>
1267650600228229401496703205376
\end{semiverbatim}
\end{frame}
% ----------------------------------------------------------------------
\end{document}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment