라고 썼지만 실제론 그냥 파일, 폴더, 설치하는 주소 얘기…ㅎ


Using Python as a calculator

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 07:18:10) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> 3 + 4
7
>>> 3 - 4
-1
>>> 3 * 4
12
>>> 3 / 4
0.75
>>> 2 ** 9
512
>>> 2 ** 12
4096
>>> 2 ** 16
65536
>>> 2 ** 20
1048576

>>> paper = 0.1 * 0.001 // 0.1mm --> convert to m
>>> fold = 2 // fold it twice (if fold once => twice the original)
>>> thickness = 2 ** fold * paper
>>> thickness
0.0004
>>> paper
0.0001

>>> fold = 3
>>> thickness = 2 ** fold * paper
>>> thickness
0.0008

>>> fold = 50
>>> thickness = 2 ** fold * paper
>>> thickness
112589990684.2624
1
2
3
4
숫자를 나눠 읽기
      112, 589, 990, 684
  조, 십억,백만,  천,
===> 천백이십억 오억팔천구백만 구십구만 육백팔십사

How thick is it in km? 112,589,991 km Distance to moon: 384,000 km

ㅇㅁㅇ

이걸 껐다가 다시 켜도 혼자 알아서 저장을 해줌 몇번째 계산 했었는지 까지 기록됨

Files, folders and tree

폴더는 폴더 안에 있어야함 폴더 안에 폴더 안에 폴더 안에… 그럼 최상위 폴더는…? 폴더안에 들어가있지 않은 특별한 폴더들이 존재함 Windows에서는 C: D: called Drives

Suppose that a folder B belongs to a folder A A is a parent folder B is a child folder Every folder has a parent folder If something has a parent, it is called tree

Tree structure of folders are represented by using indents

Command prompt, GUI and CUI

Command prompt is a program to use computers

  • Create, delete, or rename files
  • Starting a program from the menu

Aren’t these what we already do well? Starting a program which is not displayed on a program Compared to GUI, this is called CUI

type:

windows + s
cmd

to open a command prompt

C:\Users\elmo>c:
C:\Users\elmo>d:
시스템이 지정된 드라이브를 찾을 수 없습니다.

뀨…

if I had a D Drive

C:\Users\elmo>d:
D:>
C:\Users\elmo>cd ..

C:\Users>cd ..

C:\>cd "computer classes"

C:\computer classes>dir
 C 드라이브의 볼륨에는 이름이 없습니다.
 볼륨 일련 번호: 98F8-C833

C:\computer classes 디렉터리

2017-03-03  오후 12:43    <DIR>          .
2017-03-03  오후 12:43    <DIR>          ..
2017-03-03  오후 12:44    <DIR>          c
2017-03-03  오후 12:43    <DIR>          data structure
2017-03-03  오후 12:44    <DIR>          python
               0개 파일                   0 바이트
               5개 디렉터리  14,771,609,600 바이트 남음

C:\computer classes>cd ..

C:\>cd "computer classes\python"

C:\computer classes\python>

mac 에서는 \이 아니라 /

현재 드라이브의 제일 상위로 가려면 cd \

C:\computer classes\python>cd \

C:\>


메모장으로 파일을 열려면

C:\>cd "computer classes\python\python for everybody"

C:\computer classes\python\python for everybody>notepad python.txt


Download and install python 3.6

Download site : https://continuum.io

설치된 후에 Anaconda 폴더 아래 Jupyter notebook을 사용할 예정