Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python-kszkepzes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bodzsoaa
python-kszkepzes
Commits
b9549083
Commit
b9549083
authored
6 years ago
by
Bodor Máté
Browse files
Options
Downloads
Patches
Plain Diff
v0.34
parent
1f0c634e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
PITCHME.md
+80
-28
80 additions, 28 deletions
PITCHME.md
with
80 additions
and
28 deletions
PITCHME.md
+
80
−
28
View file @
b9549083
...
@@ -9,7 +9,7 @@ Note:
...
@@ -9,7 +9,7 @@ Note:
-
Ki ismeri a Pythont?
-
Ki ismeri a Pythont?
-
Ki tudja mit csinál a kód?
-
Ki tudja mit csinál a kód?
- Nézzük meg mit is csinál.
---
---
### The Zen of Python, by Tim Peters
### The Zen of Python, by Tim Peters
...
@@ -45,8 +45,9 @@ Note:
...
@@ -45,8 +45,9 @@ Note:
Note:
Note:
-
Tim Peters, fő munkatárs
-
Kiírja a Zen of Pythont
-
CPython
-
Kiemeltem párat nektek, amit fontosnak tartok
-
De mi is ez?
-
Python tervezési filozófiája, igy irjuk a python kódunkat
-
Python tervezési filozófiája, igy irjuk a python kódunkat
---
---
...
@@ -54,15 +55,19 @@ Note:
...
@@ -54,15 +55,19 @@ Note:
### Története
### Története
-
Guido van Rossum
-
Guido van Rossum
-
1991
-ben jött létre
-
1991
Python 1
-
Magas szintű programozási nyelv
-
Magas szintű programozási nyelv
Note:
Note:
-
BDFL (Benevolent dictator for life)
-
89 karácsonya előtt
-
Monty Python, karácsony
-
1 hét szünete -> Ír egy programnyelvet, amit egyszerű használni
-
Kedven sorozatárol a Monty Python
-
1991 első verzió
-
Magas szintű jellemzői:
-
könnyen olvasható, tanulható, gyors fejlesztés
-
könnyen olvasható, tanulható, gyors fejlesztés
-
lassú
-
lassú
-
(BDFL (Benevolent dictator for life))
---
---
...
@@ -74,10 +79,13 @@ Note:
...
@@ -74,10 +79,13 @@ Note:
Note:
Note:
-
Cpython Tim Peters Zen Of Python
-
Python interpretált nyelv
-
Az interpreter dolgozz fel és futtatja a kódot
-
Mivel nem a rendszer futatja a kódot, hanem az értelmező
-
nincs platformhoz kötve, értelmezőnek kell lennie
-
Sok féle megvalósítás -> alap: Cpython
-
PyPy (C, CLI, JVM), 5x gyorsabb
-
PyPy (C, CLI, JVM), 5x gyorsabb
-
Jython bármilyen Java class használhatunk vele, mintha Python modul lenne
-
Létezik java és dotnet alapú is
-
PythonNet
---
---
...
@@ -89,6 +97,8 @@ Note:
...
@@ -89,6 +97,8 @@ Note:
-
Könnyen tanulható, gyors fejlesztés
-
Könnyen tanulható, gyors fejlesztés
-
Interpretált:
-
Interpretált:
-
Bárhol lefut, nem kell lefordítani
-
Bárhol lefut, nem kell lefordítani
-
Mindent is lehet benne csinálni
-
Vicc : Bármit akarunk a második legjobb választás
---
---
...
@@ -126,17 +136,27 @@ Note:
...
@@ -126,17 +136,27 @@ Note:


Note:
Note:
-
Mint láthatjuk sokkal lasabb
Mandelbrot:
-
Fraktál
N-body
N-body
-
dinamikus rendszer
-
dinamikus rendszer
-
fizikai erőkkel szimulálva
-
fizikai erőkkel szimulálva
-
pl galaxysok vizsgalata
-
pl Bolygók egymásra hatását
-
Jupiter, Saturn, Uranus and Neptune
-
https://en.wikipedia.org/wiki/N-body_simulation
---
---
### Hello World
### Hello World
Note:
-
Kezdjük is el írni az első programunkat
- Mint minden nyelven a Hello Worldot
---
---
```
python
```
python
...
@@ -152,7 +172,7 @@ print("Hello World!")
...
@@ -152,7 +172,7 @@ print("Hello World!")
"""
This is the start of the program
"""
"""
This is the start of the program
"""
while
1
:
while
1
:
print
(
"
Spam
"
)
print
(
"
Spam
"
)
answer
=
input
(
"
Press
y
for large fries
"
)
answer
=
input
(
"
Press
'
y
'
for large fries
"
)
if
answer
==
"
y
"
:
if
answer
==
"
y
"
:
print
(
'
Large fries with spam, mmmm, yummy
'
)
print
(
'
Large fries with spam, mmmm, yummy
'
)
continue
continue
...
@@ -166,11 +186,13 @@ print("nice day!") # Bye bye
...
@@ -166,11 +186,13 @@ print("nice day!") # Bye bye
Note:
Note:
-
Nincs sorvég jel
-
Pythonak eltérő a szintaxisa a C C++ képest
-
Nincs pontosvessző a sor végén
-
A kód blokkokként indentálva vannak, nincs kapcsoszárójel
-
A kód blokkokként indentálva vannak, nincs kapcsoszárójel
-
AMi ugyananyira van behuzva az egy blokk
-
4 space
-
4 space
-
'' vagy ""
-
'' vagy ""
-
komment
#,
'''alam'''
-
komment
sorvége: #, hosszú:
'''alam'''
---
---
...
@@ -181,6 +203,11 @@ Note:
...
@@ -181,6 +203,11 @@ Note:
-
string
-
string
-
list, tuple, dictionary, ...
-
list, tuple, dictionary, ...
Note:
-
Mint láthatjátok vannak számok, boolok, stringek
-
egyébb adattípusok: list, tuple
---
---
```
python
```
python
...
@@ -201,6 +228,9 @@ Output
...
@@ -201,6 +228,9 @@ Output
(
4
+
8j
)
(
4
+
8j
)
```
```
Note:
d komplex
---
---
```
python
```
python
...
@@ -224,6 +254,10 @@ stringstring
...
@@ -224,6 +254,10 @@ stringstring
stringstringabc
stringstringabc
```
```
Note:
-Konkatenálni
---
---
### List
### List
...
@@ -236,6 +270,10 @@ list = ["a", "b", "c", 1, 2, 3]
...
@@ -236,6 +270,10 @@ list = ["a", "b", "c", 1, 2, 3]
-
Módosítható(mutable)
-
Módosítható(mutable)
-
Indexelhető
-
Indexelhető
Note:
-
Ez áll legközelebb a C tömbhöz
---
---
```
python
```
python
...
@@ -259,6 +297,16 @@ Output:
...
@@ -259,6 +297,16 @@ Output:
[
'
a
'
,
'
b
'
,
'
c
'
,
22
]
[
'
a
'
,
'
b
'
,
'
c
'
,
22
]
```
```
Note:
-
Hozzunk ltre egy listát
-
print bármit megeszik
-
indexelhető, 2 -> 22
-
hozzáfuzhetünk a lista végére
-
del törli a vátozót, minhta nem inicializátuk volna
-
többféleképpen indexelhető, adhatunk meg intervallumot
-
mettől
-
meddig
---
---
### Mit ír ki?
### Mit ír ki?
...
@@ -489,6 +537,7 @@ print(sum)
...
@@ -489,6 +537,7 @@ print(sum)
Output
Output
```
python
```
python
[
12
,
10
,
8
,
6
,
4
]
40
40
```
```
...
@@ -717,7 +766,7 @@ Foo ρ Fej
...
@@ -717,7 +766,7 @@ Foo ρ Fej
### Modul
### Modul
-
Python forráskódot tartalmazó fájlok
-
Python forráskódot tartalmazó fájlok
-
Segítségükkel több fájl
b
a tudjuk bontani a kódunkat
-
Segítségükkel több fájl
r
a tudjuk bontani a kódunkat
fruite.py
fruite.py
...
@@ -753,12 +802,12 @@ Note:
...
@@ -753,12 +802,12 @@ Note:
```
python
```
python
sound
/
Top
-
level
package
sound
/
Top
-
level
package
__init__
.
py
Initialize
the
sound
package
__init__
.
py
Initialize
the
sound
package
formats
/
Subpackage
for
file
format
conversions
formats
/
Subpackage
__init__
.
py
__init__
.
py
wavread
.
py
wavread
.
py
wavwrite
.
py
wavwrite
.
py
...
...
effects
/
Subpackage
for
sound
effects
effects
/
Subpackage
__init__
.
py
__init__
.
py
echo
.
py
echo
.
py
surround
.
py
surround
.
py
...
@@ -773,6 +822,10 @@ sound/ Top-level package
...
@@ -773,6 +822,10 @@ sound/ Top-level package
-
Egy helyen van minden
-
Egy helyen van minden
-
Könnyen használható
-
Könnyen használható
```
bash
pip
install
<package>
```
Note:
Note:
-
könnyen használható
-
könnyen használható
...
@@ -780,12 +833,6 @@ Note:
...
@@ -780,12 +833,6 @@ Note:
---
---
```
bash
pip
install
<package>
```
---
### Virtualenv
### Virtualenv
-
Saját környezet minden projekthez
-
Saját környezet minden projekthez
...
@@ -954,3 +1001,8 @@ Before
...
@@ -954,3 +1001,8 @@ Before
Hello
Hello
After
After
```
```
-
Jython bármilyen Java class használhatunk vele, mintha Python modul lenne
-
PythonNet
Jupiter, Saturn, Uranus and Neptune
-
https://en.wikipedia.org/wiki/N-body_simulation
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment