From aecc65170003bb5c9ed59e7f8a09d1a7092d90de 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 16:10:16 +0100 Subject: [PATCH] v0.07 --- PITCHME.md | 86 ++++++++++++++++++++++++++++++------------------------ 1 file changed, 48 insertions(+), 38 deletions(-) diff --git a/PITCHME.md b/PITCHME.md index a2358e1..53d2fd2 100644 --- a/PITCHME.md +++ b/PITCHME.md @@ -41,6 +41,29 @@ Note: KÉP: https://cdn-images-1.medium.com/max/800/0*_e09A-2xg4x7PG_A. --- + +### Tökéletes?! + ++++ +### Tökéletes?! + +NEM! + ++++ + +### Tökéletes?! +- Lassú, nagyon lassú +- Zabálja a ramot +- Csak futási hiba + +Note: + ++++ +Kép: https://benchmarksgame-team.pages.debian.net/benchmarksgame/faster/gpp-python3.html + +Note: + https://en.wikipedia.org/wiki/N-body_simulation +--- ### Csomagok - Webfejlesztés: @@ -81,35 +104,28 @@ KÉP: https://cdn-images-1.medium.com/max/800/0*_e09A-2xg4x7PG_A. - geoplotlib Note: ---- - -### Hátrányok - - - Lassabb, mint egy lefordított program - -Note: --- ### Pip -``` -pip install colorama -``` - - csomagkezelő - egy helyen van minden - könnyen használható - - globálisan felrakhatók a csomagok - Note: - könnyen használható - C++ ban jóval nehezebb ++++ + +``` +pip install colorama +``` + --- ### Virtualenv @@ -118,15 +134,32 @@ Note: - pipenv +```cmd +python -m venv venv +``` + +```cmd +venv\Scripts\activate.bat +``` +```bash +python3 -m venv venv +``` + +```bash +source venv\bin\activate.bat +``` + --- ### Hello World! ++++ + ```python print("Hello World!") ``` ---- ++++ ```python from colorama import init @@ -146,7 +179,6 @@ print('back to normal now') ```python #!/usr/bin/python3 - import sys try: @@ -161,29 +193,7 @@ print "' When finished" while file_text != file_finish: file_text = raw_input("Enter text: ") - - if file_text == file_finish: - # close the file - file.close - break - file.write(file_text) - file.write("\n") -file.close() -file_name = input("Enter filename: ") - -if len(file_name) == 0: - print ("Next time please enter something") - sys.exit() - -try: - file = open(file_name, "r") - -except IOError: - print ("There was an error reading file") - sys.exit() -file_text = file.read() -file.close() -print (file_text) + ``` Note: -- GitLab