From 4095dc6c4db2b96c60a1d81337b9defe5f039feb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bodor=20M=C3=A1t=C3=A9?= <bodor.mate@kszk.bme.hu> Date: Tue, 26 Mar 2019 18:38:17 +0100 Subject: [PATCH] v0.08 --- PITCHME.md | 46 +++++++++++++++++++++++++++++++++++----------- 1 file changed, 35 insertions(+), 11 deletions(-) diff --git a/PITCHME.md b/PITCHME.md index 53d2fd2..842db85 100644 --- a/PITCHME.md +++ b/PITCHME.md @@ -121,18 +121,20 @@ Note: - C++ ban jóval nehezebb +++ - ``` -pip install colorama +pip install flake8/black ``` --- ### Virtualenv - - saját környezet minden projekthez(dependecy) + - saját környezet minden projekthez + - + - - - pipenv + + - Windows: ```cmd python -m venv venv @@ -141,6 +143,8 @@ python -m venv venv ```cmd venv\Scripts\activate.bat ``` + +- Linux: ```bash python3 -m venv venv ``` @@ -161,6 +165,10 @@ print("Hello World!") +++ +``` +pip install colorama +``` + ```python from colorama import init from colorama import Fore, Back, Style @@ -206,17 +214,21 @@ Note: ### Változók ++++ + - integer - float +- complex number - string -- list -- tuple -- dictionary +- bool --- ### List + ++++ + ```python myList = ['physics', 'chemistry', 'physics', 1997, 2000] ``` @@ -241,6 +253,8 @@ del myList[2] ### Tuple ++++ + Ugyanaz, mint egy lista Nem módosítható(immutable) @@ -260,6 +274,8 @@ print (tup3) ### Dictionary ++++ + Kulcs érték pár A kulcs egyedi, érték bármi lehet @@ -276,6 +292,9 @@ del dict['Name'] --- +### Függvények +--- + ### Alap beépített fgv-ek int @@ -293,11 +312,10 @@ list range --- - ### Ciklusok --- #### While - ++++ ```python count = 0 while (count < 9): @@ -316,6 +334,7 @@ range(0, 5) #### For ++++ ```python for var in range(5): print (var) @@ -333,8 +352,9 @@ for fruit in fruits: # traversal of List sequence --- -### Elágazás +### Elágazások ++++ ```python if expression1: statement(s) @@ -350,6 +370,7 @@ else: ### Osztályok ++++ ```python class Employee: 'Common base class for all employees' @@ -369,4 +390,7 @@ class Employee: --- -### Getter, Setter \ No newline at end of file +### Getter, Setter + ++++ +a \ No newline at end of file -- GitLab