노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.


Python IDLE에서 Shift+Tab이 안되는 경우



1. 옵션  -> Cofigure IDLE
2. Keys탭을 선택

3. "dedent-region"를 목록에서 선택
4. "Get New Keys for Selection"버튼 클릭

5. Shift선택하고, Tab을 목록에서 고른다.







참조 : 

https://stackoverflow.com/questions/790711/how-to-remove-tab-indent-from-several-lines-in-idle

블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.

회전 행렬에서 오일러 각을 구하기


- Euler Angles from a Rotation Matrix




1. Rotation Matrix(회전 행렬), 


1) X-Y-Z 외적


2) 각 ( alpha, beta, gamma)




2. 코드

1) Angle -> Matrix

2) Matrix -> Angle


alpha is 45.0000000000000 degrees beta is 60.0000000000000 degrees gamma is 30.0000000000000 degrees

블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.


yahoo finance 활용(3), 미국 주식 현재가와 비교 하기




1. Scraping 


How to scrape Yahoo Finance and extract stock market data using Python & LXML , https://www.scrapehero.com/scrape-yahoo-finance-stock-market-data/



* 스크래링 결과물, JSON 파일 구조 분석


# Get Values : Year Target Est., EPS, Earnings Date
y_Target_Est = j_l_s["quoteSummary"]["result"][0]["financialData"]["targetMeanPrice"]['raw']  # noqa



2. 추가할 부분


이전글(2)에서 API가 제공하는 과거 시점의 Data이슈가 있으므로, 이전글(2)에서  '주식 목록 읽어서 가져오기' 부분과 상단의 스크래핑하는 부분을 결합 한다면, 최신 가격을 비교하는 코드를 작성 가능할것으로 보임





블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.

yahoo finance 활용(2), 미국 주식 현재가와 비교 하기



* 문제점 : yahoo finance를 통해 얻는 정보가 실시간이 아니다.


0. 사전 준비


- install python 2.7 

- install yahoo finance ( >pip install yahoo-finance )

- install code editor : IDLE(python GUI), JetBrain PyCharm, Sublime Text3



1. 전체 코드 Flow 절차


- 구입 가격 리스트를 읽기 

  : HTS등에서 엑셀로 복사하고, csv(utf-8)로 저장


- 리스트의 Symbol값으로 yahoo finance의 share(stock정보)값을 읽기


- 비교후에 결과 출력하기



2. 실행결과





* 소스코드


블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.

yahoo finance 활용(1), 미국 저평가 주식 찾기 



아래 원문과 수정된 글에서 Yahoo Finance에서 제공하는 주식 정보를 통해서, 몇가지 저평가 기준을 적용하여, 결과를 얻는 프로그램으로, Python 프로그램 구조와 코딩 문법을 고려하여 재작성을 합니다.


Python코딩 문법은 80칼럼 넘는 부분, 함수간격 2줄, 파라미터 구분자, Indent등을 pep8online.com를 통해서 검사할 수 있습니다.


1. 입력 데이터 파일 만들기


리스트 다운로드는 http://www.nasdaq.com/screening/company-list.aspx


2. 조건식 설정(정의)

# share price is less than 1.5 x book value
PRICE_BOOK_LT = 2.0
# earnings per share is at least 2x bigger than dividend per share
EARN_DIV_GT = 1.5
# dividend yield is more than 3%
DIV_YIELD_RATIO = 3.0
# 5yr PEG is between 0 and 1.1 ( or < 2.0 )
PEG_GT = 0.0
PEG_LT = 2.0



3. 결과 파일 만들기



현재 기준으로 검색 결과는 아래와 같습니다.


아래 코드는 python 2 기준으로 작성되었으며, python 3에서 실행시는 print -> print()로 괄호를 추가 해야 합니다.



아래 형식에서 구분자를 ,를 사용하였으나, Company명에 ,를 사용하는 경우가 있으므로, 구분자의 대체가 필요 해 보입니다.

Symbol,Company,Price,Bookvalue,Dividend share,Dividend yield,EPS,PE ratio,PE growth ratio
AYR,Aircastle Limited,21.77,23.58,1.04,4.81,2.00,10.89,1.89
ABR,Arbor Realty Trust,8.31,9.79,0.72,8.80,1.11,7.46,0.93
CHS,Chico's FAS, Inc.,8.56,4.86,0.33,3.61,0.72,11.94,0.95
FNB,F.N.B. Corporation,14.09,13.22,0.48,3.35,0.73,19.25,1.22
FAF,First American Corporation (New,44.64,27.80,1.36,3.04,3.14,14.23,1.87
GME,Gamestop Corporation,21.15,22.40,1.52,7.27,3.36,6.30,0.83
HT,Hersha Hospitality Trust Class,18.17,20.14,1.12,6.20,2.91,6.25,0.33
IGT,International Game Technology O,18.27,17.80,0.80,4.42,1.23,14.82,1.17
IVZ,Invesco Ltd,36.11,18.83,1.16,3.30,2.20,16.43,1.02
KKR,KKR & Co. L.P. Common Units Rep,19.17,12.63,0.68,3.67,1.76,10.88,0.15
KSS,Kohl's Corporation,37.15,29.20,2.20,5.75,3.45,10.76,1.88
MFC,Manulife Financial Corporation,19.44,15.39,0.55,3.13,1.20,16.20,1.71
ORI,Old Republic International Corp,19.40,17.61,0.76,3.88,1.59,12.22,1.33
PK,Park Hotels & Resorts Inc.,27.00,28.03,1.72,6.41,11.45,2.36,0.51
PKX,POSCO,67.49,115.34,2.08,3.23,4.96,13.59,0.34
RWT,Redwood Trust, Inc.,17.21,15.13,1.12,6.58,1.76,9.78,1.45
SNY,Sanofi American Depositary Shar,49.0425,25.8810,1.6400,3.4300,4.1345,11.8618,1.5500
TGNA,TEGNA Inc,14.38,10.66,0.49,3.41,1.87,7.68,1.95
UMC,United Microelectronics Corpora,2.35,2.91,0.09,3.82,0.14,17.41,1.08
VLO,Valero Energy Corporation,68.03,44.33,2.80,4.11,4.57,14.88,0.77




수정문 : http://blog.naver.com/PostView.nhn?blogId=silvury&logNo=220933350426

원문 :  https://www.reddit.com/r/SecurityAnalysis/comments/4u969n/finding_undervalued_dividend_stocks_with_python/







또는 My Screeners 


Yahoo Finance내의 Screen 서비스를 이용해서, https://finance.yahoo.com/screener 내의 Undervalued Growth Stocks, Growth Technology Stocks, Day Gainers, Day Losers, Most Actives등에서 조건식을 변경하는 방법도 있다.


1. Undervalued Growth Stocks


- Trailling P/E (LTM) is (<0) (0-20) (20-50) (50-80) (>80)

- PEG Ration(5yr expected) is (<1) (1 to 2) ( 2 to 3 ) (>3)

- EPS Growth (LTM) is (<15%) (15% to 25%) (25% to 50%) (50% to 100%) (> 100%)

- Exchange is (NasdaqGS) (NYSE)


2. Growth Technology Stocks


- Quarterly Revenue Growth(yoy) is (<15%) (15% to 25%) (25% to 50%) (50% to 100%) (> 100%)

- EPS Growth (LTM) is (<15%) (15% to 25%) (25% to 50%) (50% to 100%) (> 100%)

- Sector is (Technology)

- Exchange is (NasdaqGS) (NYSE)


참고. developer yahho.com / yql / console


https://developer.yahoo.com/yql/console/#h=select+*+from+pm.finance+where+symbol%3D%22SKT%22

블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.

Udacity.com Nanodegree(미세 전공) 학위



컴퓨터 전공자와 독학 개발자, 누굴 채용할까? 라는 제목에서 비교를 하고 있지만, 그 보다는

코세라(Coursera), 유다시티(Udacity), 칸아카데미(Kahn Academy)등이 제공하는 MOOCs(Massively Open Online Courses)가 새로운 프로그래밍 언어의 개발자가 되려는 사람들에게 중요한 역할을 하고 있을을 알 수 있다.



그리고, 컴퓨터 공학을 전공하려면 대학 등록금만 1년에 수만달러가 들겠지만, 이들 MOOC를 통해서 저렴한 비용으로 자격증을 취득할 수 있다. 유다시티는 Nono Degree를 월199달러 러에 제공하고 1년이 소요되면, 비용의 절반을 환급하고, 졸업후에 6개월내에 직장을 구하지 못하면, 전액 또는 일부를 돌려준다. ( MOOC를 통해 인생역전 메이저는 전공학위, 마이너는 부전공 학위, 나노는 미세전공 학위쯤...)



Nanodegree, 2017년 7월 현재


- React ( nd019 )

- Intro to Programming

- VR Developer

- Robotics

- Digital Marketing

- Deep Learning Foundations

- Artificial Intelligence

- Self-Driving Car Engineer

- Business Analyst

- Android Basics

- Machine Learning Engineer

- Fron-End Web Developer

- Full Stack Web Developer( nd04)  , 글쓴이가 취득한 학위 -  아마 4번째로 생긴것 같다 

- Android Developer

- Become an iOS Developer

- Data Analyst ( nd02 )



Full Stack Web Developer Nanodegree


CO-CREATED BY : AWS(Amazon Web Service), GitHub, AT&T, Google

TIMELINE : 6 Months

SKILL LEVEL : 중급 ( Intermediate ) 

BASE SALARY : FULL STACK DEVELOPER $40.4K TO $162K ( from PAYSA )



커리큘럼 ( 5 PARTS, 7 PROJECTS )


1. Programming Fundamentals and the Web ( 26개 단원, 2개 프로젝트 )


2. Web Applications and Development ( 8개 단원, 1개 프로젝트 )


3. The Backend : Databases & Applications ( 14개 단원, 2개 프로젝트 )


4. The Frontend: JavaScript & AJAX ( 9개 단원, 1개 프로젝트 )


5. Deploying to Linux Servers ( 6개 단원, 1개 프로젝트 )




진행 방식


각 단원은 1시간~10여 시간이 소요된다.


매주 10시간의 수업을 청취해야 하며, 이를 토대로 3-6개월 정도를 산정한것으로 보인다.


중간 또는 말미에 프로젝트를 완성하고 제출하면, 미흡한 부분등을 알려주면서 보완해서 다시 제출하도록 안내를 한다. 


모든 프로젝트를 통과를 하게 되면, 1개 PART를 완료 처리를 해준다. 


각 프로젝트는 대체로 수일정도가 소요되는것으로 생각이 된다.






블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.

Python Lists , 리스트


원문에서 제공하는 예제는 실제 실행시에, 예약어등의 사용으로 warning과 error가 발생하므로 수정해서 실행을 해야 한다. 이 실행 결과를 정리한다.



##

## Python Lists , 리스트 기본

##


# Lists work similarly to strings - use the len() function and square brackets[] 

# to access data, with the first element at index 0

colors = ['blue', 'blue', 'green']


print (colors[0]) ## blue

print (colors[2]) ## green

print (len(colors)) ## 3


# Assignment with an = on lists doest not make a copy. 복사 금지

# Instead, assignment makes the two variables point to the one list in memory

b = colors ## Does not copy the list


print(b) ## ['blue', 'blue', 'green']


empty_list = [] ## is just an empty pair of brackets []


yield_list = [1,2] + [3, 4] ## The '+' works to append two lists

print(yield_list) ## [1, 2, 3, 4]



##

## FOR and IN , 생성자 For

##


# Python's *for* and *in* constructs are extremely useful, 

# and the first use of them we'll see is with lists.

squares = [1, 4, 9, 16]

total_value = 0

# The *for* construct - for var in list 

#    is an easy way to look at each element in a list.

#    Do not add or remove from the list during iteration.

for num in squares:

  total_value += num

print( total_value ) ##30


# The *in* construct on ite own is an easy way to test if an element appears

# in a list(or other collection) - value in collection - tests if the value is

# in the collection, returning True/False

name_list = ['larry', 'curly', 'moe']

if 'curly' in name_list:

  print('yay')


# test_strings = 'abcd'

# for ch in test_strings:

#   print(ch) ## a b c d


##

## Range , 범위 ( 0 ~ n-1 ) 

##


# The range(n) function yields the numbers 0,1, ... n-1 and range(a,b) returns

# a, a+1, ... b-1 up to but not including the last number.

# for i in range(100):

#   print(i)


##

## While Loop, 반복 While

##


# Python also has the standard while-loop, and the *break* and *continue* statements work

# as in C++ and Java, altering the course of the innermost loop.

i = 1

a = 'abc'

while i < len(a):

  print (a[i]) ## b

  i = i + 3



##

## List Methods , 함수들

##


# Here are some other common list methods.

# list.append(elem) : adds a single element to the end of the list

# list.insert(index, elem) : inserts the element at the given index

# list.extend(list2) : adds the elements in list2 to the end of the list

# list.index(elem) : searches for the given element from the start of the list and returns its index

# list.remove(elem) : searches for the first instance of the given element and removes it

# list.sort() : sorts the list in place(does not return it)

# list.reverse() : reverses the list in place(does not return it)

# list.pop(index) : removes and returns the element at the given index

str_list = ['larry', 'curly', 'moe']

str_list.append('shemp')

str_list.insert(0,'xxx')

str_list.extend(['yyy', 'zzz'])

print(str_list) ## ['xxx', 'larry', 'curly', 'moe', 'shemp', 'yyy', 'zzz']

print(str_list.index('curly')) ## 2


str_list.pop(1)

print(str_list) ## ['xxx', 'curly', 'moe', 'shemp', 'yyy', 'zzz']


# common error 

# : note that the above methods do not *return* the modified list

#   they just modify the original list

num_list = [1, 2, 3]

print(num_list.append(4)) ## None

num_list.append(4)

print(num_list) ## [1, 2, 3, 4, 4]


##

## List Build up, 생성하기

##


# One common pattern is to start a list a the empty list[],

# then use append() or extend() to add elements to it

empty_list = []

empty_list.append('a')

empty_list.append('b')

print(empty_list) ## ['a', 'b']


##

## List Slices, 자르기 [start:end:step]

##


# Slices work on lists just as with strings, and can also be used to change

# sub-parts of the list


char_list = ['a', 'b', 'c', 'd']

print(char_list[1:-1]) ## ['b', 'c']

print(char_list[:]) ## ['a', 'b', 'c', 'd']

print(char_list[1:2]) ## ['b']

char_list[0:2] = 'z'

print(char_list) # ['z', 'c', 'd']



원본 

https://developers.google.com/edu/python/lists















블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,

Python 예제

Web Tech./Python 2017. 7. 4. 18:42
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.

Python 예제



## Comments


# This is a one-line Python comment - code blocks are so useful !

""" This type of comment is used to document the purpose of funtions and classes."""


## Declaration/Initialization


# Remember values, not variables, have data types.

# A variable can be reassigned to containe a different data type.

answer = 42

answer_some = "The answer is 42."


## Data Types


boolean = True

number = 1.1

string = "Strings can be declared with single or double quotes."

list_some = ["Lists can have", 1, 2, 3, 4, "or more types together!"]

tuple_some = ("Tuples", "can have", "more than", 2, "elements!")

dictionary = {'one': 1, 'two': 2, 'three': 3}

variable_with_zero_data = None


print(list_some)

print(tuple_some)

print(dictionary)


## Simple Logging


print ("Printed!")


## Conditionals


def test_func(cake):

  if cake == "delicious":

    return "Yes, please!"

  elif cake == "okay":

    return "I'll have a small piece."

  else:

    return "No, thank you."


## Loops


for item in list_some:

  print (item)


def is_big(total, max_val, values):

  i = 0

  while (total < max_val):

    total += values[i]

    i += 2

  return total

  

## Functions


def divide(dividend, divisor):

  quotient = dividend / divisor

  remainder = dividend % divisor

  return quotient, remainder



def caculate_stuff(x, y):

  (q, r) = divide(x, y)

  print (q, r)


## classes

class person(object):


  def __init__(self, name, age):

    self.name = name

    self.age = age

    

  def birthday(self):

    self.age += 1

    



블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.


Python, Web 보안 (기초)



1. SQL Injection


  - string format 쿼리

    : 사용자의 조작된 입력값으로 공격을 받게 되는 부분을 차단

    cur = db.cursor()
    query = "SELECT * FROM user_table where user = %s" % user_id
    c.execute(query)


2. XSS ( Cross-site Scripting )


  - html코드를 string format를 통해서 escape처리

    : 의도하지 않는 사용자의 조작된 코드를 방지

return "<'h1>hello, %s! <'/h1>" % user


3. XRF( Cross-site request forgery )


  - flask패키지를 통해서 입력폼을 검증

<form method="POST" action="/"> {{ form.csrf_token }} {{ form.name.label }} {{ form.name(size=20) }} <input type="submit" value="Go"> </form>





* 참조 


https://swalloow.github.io/flask-security , python


https://www.google.co.id/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&cad=rja&uact=8&ved=0ahUKEwiTvfvjh-_UAhUDp48KHdanCqcQFggzMAI&url=https%3A%2F%2Fwww.cs.utexas.edu%2F~shmat%2Fcourses%2Fcs380s_fall09%2F10webappsecurity.ppt&usg=AFQjCNGMlgsoxIp_n-fNUf_Y_XrWg6Inig , Security of Web Applications



http://flask.pocoo.org/docs/0.12/security/, flask


http://nisam.tistory.com/8 , PHP


http://code1018.tistory.com/89, PHP

'Web Tech. > Python' 카테고리의 다른 글

Python Lists 강좌 ( 원문, google.com )  (0) 2017.07.05
Python 예제  (0) 2017.07.04
vagrant up, Authentication failure. Retrying 발생시  (0) 2017.05.16
빅데이타와 Python  (0) 2017.02.07
Eclipse(이클립스), Python Editor 설치  (0) 2016.11.16
블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.


vagrant up시에 Authentication failure. Retrying...가 반복될때



Oracle VM VirtualBox(4.3.2사용)를 통해서 실행시에,


오른쪽과 같이 에러가 발생하면,


==> default: Waiting for machine to boot. This may take a few minutes...

    default: SSH address: 127.0.0.1:2222

    default: SSH username: vagrant

    default: SSH auth method: private key

    default: Warning: Authentication failure. Retrying...

    default: Warning: Authentication failure. Retrying...

    default: Warning: Authentication failure. Retrying...

    default: Warning: Authentication failure. Retrying...

    default: Warning: Authentication failure. Retrying...

    default: Warning: Authentication failure. Retrying...

    default: Warning: Authentication failure. Retrying...

    default: Warning: Authentication failure. Retrying...


1. vagrant ssh-config로 IdentityFile 위치를 확인하고,

2. insecure_private_key.pub의 내용을 복사한다.


3. 다른 bash에서 vagrant ssh를 실행하고, password는 vagrant입력하고 접속한다.

4. 접속후에 .ssh/authorized_keys파일에 복사한 내용을 붙여넣기 한다.



5. 4번이 완료되면, 오른쪽 창이 다음 단계로 넘어간다.



* 명령어 


vagrant up , https://www.vagrantup.com/docs/cli/up.html 

vagrant ssh , https://www.vagrantup.com/docs/cli/ssh.html



'Web Tech. > Python' 카테고리의 다른 글

Python 예제  (0) 2017.07.04
Python, Web 보안 (기초)  (0) 2017.07.04
빅데이타와 Python  (0) 2017.02.07
Eclipse(이클립스), Python Editor 설치  (0) 2016.11.16
Python/파이썬 설치  (0) 2016.11.16
블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.


빅데이타 인사이트 과정 

빅데이터 연구원/서울대학교


선수 지식 - 기초통계, 마케팅 기초


세션 1: 데이터처리 개론과 Python 입문
- Python 기본 syntax / interpreter 사용법
- Program structures: functions, if-else, loops
세션 2: 데이터처리 개론과 Python 입문
- 기본 data types & sequences / file 사용
- library 개념과 사용 연습
세션 3: 빅데이터 분석을 위한 통계적 방법론
- 회귀분석, 로지스틱회귀분석
- Python 프로그램 이용 데이터 분석 실습
세션 4: 빅데이터 분석을 위한 통계적 방법론
- 의사결정나무, 군집분석
- Python 프로그램 이용 데이터 분석 실습
세션 5: 마케팅 애널리틱스 (Data-driven Marketing Analytics)
- 시장 수준 애널리틱스 / 애널리틱스 사례 실습 (가격 및 마케팅 활동 효과 분석)
세션 6: 마케팅 애널리틱스 (Data-driven Marketing Analytics)
- 고객 수준 애널리틱스 / 애널리틱스 사례 실습 (고객의 선택, 구매, 이탈 행동 분석)
세션 7: 비정형 데이터 분석을 통한 효율적인 의사결정
- Python 기초문법
- Python을 활용한 웹 크롤링
세션 8: 비정형 데이터 분석을 통한 효율적인 의사결정
- KoNLPy를 통한 텍스트 전처리
- 텍스트 데이터 시각화 및 분석하기
세션 9: 빅데이터 비즈니스 밸류 창출 프로세스
- 빅데이터 아키텍트의 기획
- 인사이트 도출을 위한 빅데이터 분석
세션 9: 빅데이터 비즈니스 밸류 창출 프로세스
- 분석 데이터를 활용한 비즈니스 가치 창출
빅데이터 활용 사례 특강: 빅데이터 세상의 초입: 알파고, 딥러닝, 주식
세션 10: 빅데이터 비즈니스 밸류 창출 프로세스
빅데이터 활용 사례 특강: 디지털 혁신 국가

* http://bigdata.snu.ac.kr/academy/info-insights.php


'Web Tech. > Python' 카테고리의 다른 글

Python 예제  (0) 2017.07.04
Python, Web 보안 (기초)  (0) 2017.07.04
vagrant up, Authentication failure. Retrying 발생시  (0) 2017.05.16
Eclipse(이클립스), Python Editor 설치  (0) 2016.11.16
Python/파이썬 설치  (0) 2016.11.16
블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.



Eclipse, Python Editor 설치, 그리고 Hello World



 

Marketplace에서 python을 검색, PyDev를 선택 설치







Interpreter설정


- path는 Python 설치 위치에 따라 다름





 

프로젝트 신규 생성 - PyDev Project 생성




신규 Module 추가



Package명과 Name을 입력 ( print_hello_world.py가 test package밑에 생성)


Module: Main을 선택



생성된 파일에서 수정하기

pass를 print('Hello World')로 변경하고


Ctrl + F11을 실행



'Web Tech. > Python' 카테고리의 다른 글

Python 예제  (0) 2017.07.04
Python, Web 보안 (기초)  (0) 2017.07.04
vagrant up, Authentication failure. Retrying 발생시  (0) 2017.05.16
빅데이타와 Python  (0) 2017.02.07
Python/파이썬 설치  (0) 2016.11.16
블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,
노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.


Python/파이썬 설치



Windows


- http://www.python.org에서 Download메뉴를 선택

- 3.x 버젼을 선택 다운로드후 실행




- 설치확인은 powershell에서 python이라고 입력후에 오류가 나지 않으면 성공




(Window Key + R후에 powershell을 입력하면, powershell이 실행됨 )




[Python3] 파이썬 2.x 버전과 3 버전 차이 정리

                                                                                                                                                                                             

 

'Web Tech. > Python' 카테고리의 다른 글

Python 예제  (0) 2017.07.04
Python, Web 보안 (기초)  (0) 2017.07.04
vagrant up, Authentication failure. Retrying 발생시  (0) 2017.05.16
빅데이타와 Python  (0) 2017.02.07
Eclipse(이클립스), Python Editor 설치  (0) 2016.11.16
블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,