Python IDE


개인적인 추천 및 특정 blog 내용이니, 참고만 하시면 됩니다.

앞으로의 해당 블로그는 PyCharm으로 진행할 예정입니다.


그래도 일반적으로 아래와 같은 Eclipse, PyCharm등 IDE를 많이 사용합니다.


앞으로 블로그를 진행할 PyCharm 설치방법에 대해 간단히 정리하자면,

Link : https://www.jetbrains.com/pycharm/download/ 에서 

Professional 또는 Community 버전으로 다운받으면 됩니다.


Professional 은 유료 License 이며, Community는 무료 License입니다.


학생의 경우 https://www.jetbrains.com/student/ 링크와 함께 무료정책이

있습니다. Email address나 ISIC 학생증이 있으면 됩니다.


해당 관련 정책은 https://www.jetbrains.com/store/#edition=discounts 에 있습니다.







Eclipse with PyDev


It's hard to write anything about open source integrated development environments without covering Eclipse, which has a huge developer community and countless plugins available allowing you to customize it to meet nearly any need you can imagine. But this kitchen sink approach is also one of Eclipse's downsides. Many criticize it as bloated, and performance on low spec systems certainly can be an issue.

That said, if you're coming to Python from a background in a different language, particularly Java, Eclipse may already be your go to IDE. And if you make use of its many features, you may find life without them difficult.

PyDev adds a huge number of features to Eclipse, far beyond simple code highlighting. It handles code completion, integrates Python debugging, adds a token browser, refactoring tools, and much more. For those working with the popular Django Python web framework, PyDev will allow you to create new Django projects, execute Django actions via hotkeys, and use a separate run configuration just for Django.

Eclipse and PyDev are both made available under the Eclipse Public License.




Eric


Eric is my personal favorite IDE for Python editing. Named after Monty Python's Eric Idle, Eric is actually written in Python using the Qt framework.

Eric makes use of Scintilla, a source code editing component which is used in a number of different IDEs and editors which is also available as the stand-aloneSciTE editor.

The features of Eric are similar to other IDEs: brace matching, code completion, a class browser, integrated unit tests, etc. It also has a Qt form preview function, which is useful if you're developing a Qt GUI for your application, and I personally like the integrated task list function.

I've heard some criticisms of Eric's documentation, which primarily being delivered through a massive PDF does leave something to be desired, but if you take the time to learn it, I find Eric to be a lighweight yet full-featured programming environment.

Eric is made available under the GPL version 3.




PyCharm


PyCharm is another popular Python editor and rounds out my top three. Pycharm is a commercial product, but the makers also offer a community edition which is free and open source under the Apache 2.0 license.

PyCharm features pretty much everything one might hope for in an IDE: integrated unit testing, code inspection, integrated version control, code refactoring tools, a variety of tools for project navigation, as well as the highlighting and automated completion features you would expect with any IDE.

To me, the main drawback of PyCharm is its open core model. Many of PyCharm's advanced features are not available under an open source license, and for me, that's a deal breaker. However, if you're not looking to use the more advanced features included in the closed source verion, having the features left out may leave PyCharm as a lighter weight choice for Python editing.



Window command 개발

명령어 창에 Python을 치면 개발할 수 있는 환경이 됩니다.

만약 안된다면 환경변수를 한번 확인해보세요.



'프로그래밍 > Python' 카테고리의 다른 글

[Python] Linux(우분투) Python 설치  (0) 2016.04.19
[Python] 기본 자료형이란?  (0) 2016.04.13
[Python] Python 철학  (0) 2016.04.13
[Python] Python 설치하기  (0) 2016.04.08
[Python] Python 이란?  (0) 2016.04.04

관계 연산자, 조건 연산자


관계 연산자(==,!=,비교) 등과 조건 연산자는 같이 쓰이는 경우도 많고,

아래 결과값대로 boolean값을 반환합니다.


단순하게 출력하면 true or false 로 확인할 수 있으며, 

if문과 같이 사용을 많이 합니다.


코드



//결과
true
false
false
true
false
false
true
true
a<=b



'프로그래밍 > Java' 카테고리의 다른 글

[Java] 연산자-5  (0) 2016.04.14
[Java] 연산자-4  (0) 2016.04.14
[Java] 연산자-2  (0) 2016.04.08
[Java] 연산자-1  (0) 2016.04.05
[Java] 자료형의 변환  (0) 2016.04.04

Python 설치하기


1. Install Python on Windows!

 (1) 공식 hompage 접속(http://www.python.org)



 (2) 위의 Download 페이지를 클릭!

     (3.X 버전과 2.X 버전이 있음, 최신은 3.X버전이나 시스템에 2.X버전으로 설치되어있는 

     경우도 있어 둘다 지원하고 있음, 차이는 문법차이외에도 많은 차이점이 있으니, 

     2.X 버전이 특별히 필요하지 않는 경우는 3.X버전 설치할것!)

 


 (3) 클릭해서 들어가면 아래 File 항목에 OS별 / 소스 Download가 있음

        Windows x86-64 executable installer를 다운로드 후 실행하세요.


'프로그래밍 > Python' 카테고리의 다른 글

[Python] Linux(우분투) Python 설치  (0) 2016.04.19
[Python] 기본 자료형이란?  (0) 2016.04.13
[Python] Python 철학  (0) 2016.04.13
[Python] Python IDE 소개 및 개발 환경  (0) 2016.04.10
[Python] Python 이란?  (0) 2016.04.04

자바 연산자-2


산술 연산자와 단항연산자의 예시 코드와 결과 값입니다.

한줄 한줄 따라가 보면서 확인하는게 중요합니다. 가장 기본이 되는 연산자를

반드시 잘 사용해야 합니다.


매우 쉬운 연산이라 무시하고 넘어가서는 안되는 경우가 꼭 발생합니다.



예제 코드

		//대입연산자
		int a = 30;
		int b = 20;
		
		System.out.println("a = "+a);
		System.out.println("b = "+b);
		
		//산술연산자
		int c = a + b;
		System.out.println("c = "+c);

		int d = a - b;
		System.out.println("d = "+d);

		int e = a * b;
		System.out.println("e = "+e);

		float f = (float)a / (float)b;
		System.out.println("f = "+f);

		int g = a % b;
		System.out.println("g = "+g);
		
		//단항 연산자
		int plus_a = +a;
		System.out.println("plus a = "+plus_a);	
	
		int minus_b = -b;
		System.out.println("minus b = "+minus_b);	

		int plusplus_aa = ++a;
		System.out.println("plusplus_aa = "+plusplus_aa);	

		int minusminus_bb = --b;
		System.out.println("minusminus_bb = "+minusminus_bb);
	



결과

		a = 30
		b = 20
		c = 50
		d = 10
		e = 600
		f = 1.5
		g = 10
		plus a = 30
		minus b = -20
		plusplus_aa = 31
		minusminus_bb = 19


'프로그래밍 > Java' 카테고리의 다른 글

[Java] 연산자-4  (0) 2016.04.14
[Java] 연산자-3  (0) 2016.04.10
[Java] 연산자-1  (0) 2016.04.05
[Java] 자료형의 변환  (0) 2016.04.04
[Java] Literals  (0) 2016.04.03

1. SD card Format(포맷)


FORMAT YOUR SD CARD 원문 가이드


It is best to format your SD card before copying the NOOBS files onto it. To do this:

NOOB를 설치하기전에 SD Card를 포맷하는것이 좋음


Visit the SD Association’s website and download SD Formatter 4.0 for either Windows or Mac.

SD Formatter 4.0 를 당신의 OS따라 설치할것!(https://www.sdcard.org/downloads/formatter_4/)



첨부파일 추가

setup.exe



Follow the instructions to install the software.

아래 가이들 따라 설치할것!

Insert your SD card into the computer or laptop’s SD card reader and make a note of the drive letter allocated to it, e.g. G:/

SD카드를 컴퓨터의 리더기에 넣고, 드라이브를 기억할것!

In SD Formatter, select the drive letter for your SD card and format it.

SD Formatter에서 드라이브 선택하고 SD카드 포멧할것!


추가로 포맷에서 선택할 수 있는 Option중에는 아래 세가지가 있으며, 

 - QUICK - 빠른 포맷

 - FULL(erase) - 전체 포맷 및 파일시스템 초기화

 - FULL(overwrite) - 기본으로 erase와 같으나 덮어쓰는 의미(?)로 복구 불가능의 포맷


사용할 사이즈도 조정가능하며, 기본적으로 OFF 로 진행할것!


 사용에는 3가지 가운데 어느것을 선택해도 상관없음.




2. OS 설치

 (1) OS 설치를 위해 https://www.raspberrypi.org/downloads/ 접속

     아래 같이 OS 선택해서 다운로드 할수 있는게 나옵니다.

     초심자는 NOOBS를 선택하라고 가이드 하고 있습니다. 초기에 구매형태에 따라 

     깔려있는 SD 카드도 있습니다.  


     NOOBS 에 대한 설치 가이드(https://www.raspberrypi.org/help/noobs-setup/)

     NOOBS는 라즈베이안 포함 이고 NOOBS LITE는 미포함이므로 다운로드 받아야함



 (2) OS Image Write to SD card

      다운로드 받으신다음 SD card에 복사합니다.



      참고적으로 다른 Image 파일을 설치하고자 한다면,

      Win32 Disk Imager를 이용해서 Image 파일을 구울 수 있다.

      Link : https://sourceforge.net/projects/win32diskimager/  에서 받을 수 있습니다.



3. 처음 Booting


라즈베리안 OS를 설치하면 아래와 같이 그림이 나옵니다.




처음 부팅하면 아래와 같은 화면입니다.


      

     

지금까지 간단히 OS를 설치하고 처음 부팅화면까지 보았습니다.

다음으로는 무선 LAN 을 세팅하고 인터넷 사용까지 해보도록 하겠습니다.


자바 연산자 종류


Simple Assignment Operator (대입연산자)

=       Simple assignment operator

Arithmetic Operators(산술 연산자)

+       Additive operator (also used for String concatenation)
-       Subtraction operator
*       Multiplication operator
/       Division operator
%       Remainder operator

Unary Operators(단항 연산자)

+       Unary plus operator; indicates positive value (numbers are positive without this, however)
-       Unary minus operator; negates an expression
++      Increment operator; increments a value by 1
--      Decrement operator; decrements a value by 1
!       Logical complement operator;inverts the value of a boolean

Equality and Relational Operators (관계 연산자)

==      Equal to
!=      Not equal to
>       Greater than
>=      Greater than or equal to
<       Less than
<=      Less than or equal to

Conditional Operators(조건 연산자)

&&      Conditional-AND
||      Conditional-OR
?:      Ternary (shorthand for 
        if-then-else statement)

Type Comparison Operator (타입 비교 연산자)

instanceof      Compares an object to  a specified type 

Bitwise and Bit Shift Operators (비트 연산자)

~       Unary bitwise complement
<<      Signed left shift
>>      Signed right shift
>>>     Unsigned right shift
&       Bitwise AND
^       Bitwise exclusive OR
|       Bitwise inclusive OR




'프로그래밍 > Java' 카테고리의 다른 글

[Java] 연산자-3  (0) 2016.04.10
[Java] 연산자-2  (0) 2016.04.08
[Java] 자료형의 변환  (0) 2016.04.04
[Java] Literals  (0) 2016.04.03
[Java] 자료형의 Default Value  (0) 2016.04.03

머신러닝(Machine Learning)이란?

머신 러닝(영어: machine learning) 또는 기계 학습(機械 學習)은 인공 지능의 한 분야로, 컴퓨터가 학습할 수 있도록 하는 알고리즘과 기술을 개발하는 분야를 말한다. 가령, 기계 학습을 통해서 수신한 이메일이 스팸인지 아닌지를 구분할 수 있도록 훈련할 수 있다.

기계 학습의 핵심은 표현(representation)과 일반화(generalization)에 있다. 표현이란 데이터의 평가이며, 일반화란 아직 알 수 없는 데이터에 대한 처리이다. 이는 전산 학습 이론 분야이기도 하다. 다양한 기계 학습의 응용이 존재한다. 문자 인식은 이를 이용한 가장 잘 알려진 사례이다.


머신러닝 강의?

Link : https://www.coursera.org/learn/machine-learning/home/welcome

Coursera에서 하는 강의이며, Andrew Ng 교수가 지도함.

Certification을 위해서는 추가로 돈을 내야 하지만, 그냥 강의 이수를 위해서는 그럴 필요 없음.

1. Python 이란?


wiki에서 정의하는 Python 이란?

파이썬[1](Python)은 1991년[2] 프로그래머 귀도 반 로섬(Guido van Rossum)[3]이 발표한 고급 프로그래밍 언어로, 플랫폼 독립적이며 인터프리터식, 객체지향적, 동적 타이핑(dynamically typed) 대화형 언어이다. 파이썬이라는 이름은 귀도가 좋아하는 코미디 〈Monty Python's Flying Circus〉에서 따온 것이다.

파이썬은 비영리의 파이썬 소프트웨어 재단이 관리하는 개방형, 공동체 기반 개발 모델을 가지고 있다.C언어로 구현된 C파이썬 구현이 사실상의 표준이다.

  • 주요 특징
    • 동적 타이핑(dynamic typing). (실행 시간에 자료형을 검사한다.)
    • 객체의 멤버에 무제한으로 접근할 수 있다. (속성이나 전용의 메서드 훅을 만들어 제한할 수는 있음.)
    • 모듈, 클래스, 객체와 같은 언어의 요소가 내부에서 접근할 수 있고, 리플렉션을 이용한 기술을 쓸 수 있다.
  • 해석 프로그램의 종류
    • C파이썬 : C로 작성된 인터프리터.
    • 스택리스 파이썬 : C 스택을 사용하지 않는 인터프리터.
    • 자이썬 : 자바 가상 머신 용 인터프리터. 과거에는 제이파이썬(JPython)이라고 불렸다.
    • IronPython : .NET 플랫폼 용 인터프리터.
    • PyPy : 파이썬으로 작성된 파이썬 인터프리터.


현대의 파이썬은 여전히 인터프리터 언어처럼 동작하나 사용자가 모르는 사이에 스스로 파이썬 소스 코드를 컴파일하여 바이트 코드(Byte code)를 만들어 냄으로써 다음에 수행할 때에는 빠른 속도를 보여 준다.

파이썬에서는 들여쓰기를 사용해서 블록을 구분하는 독특한 문법을 채용하고 있다. 이 문법은 파이썬에 익숙한 사용자나 기존 프로그래밍 언어에서 들여쓰기의 중요성을 높이 평가하는 사용자에게는 잘 받아들여지고 있지만, 다른 언어의 사용자에게서는 프로그래머의 코딩 스타일을 제한한다는 비판도 많다. 이 밖에도 실행 시간에서뿐 아니라 네이티브 이진 파일을 만들어 주는 C/C++ 등의 언어에 비해 수행 속도가 느리다는 단점이 있다. 그러나 사업 분야 등 일반적인 컴퓨터 응용 환경에서는 속도가 그리 중요하지 않고, 빠른 속도를 요하는 프로그램의 경우에도 프로토타이핑한 뒤 빠른 속도가 필요한 부분만 골라서 C 언어 등으로 모듈화할 수 있다(ctypes, SWIG, SIP 등의 래퍼 생성 프로그램들이 많이 있다). 또한 Pyrex, Psyco, NumPy 등을 이용하면 수치를 빠르게 연산할 수 있기 때문에 과학, 공학 분야에서도 많이 이용되고 있다. 점차적인 중요성의 강조로 대한민국에서도 점차 그 활용도가 커지고 있다.[4]


파이썬에 영향을 준 언어[편집]


From Wiki



'프로그래밍 > Python' 카테고리의 다른 글

[Python] Linux(우분투) Python 설치  (0) 2016.04.19
[Python] 기본 자료형이란?  (0) 2016.04.13
[Python] Python 철학  (0) 2016.04.13
[Python] Python IDE 소개 및 개발 환경  (0) 2016.04.10
[Python] Python 설치하기  (0) 2016.04.08

+ Recent posts