Python 철학

본격적으로 설명 나가기전에, 왜 Python인가 하는 의문을 가지는 사람도 있을것입니다.

사실 저도 Python을 접하기전에 "왜?" 가 제일 궁금했었습니다.

아래와 같이 "import this" 입력하면 파이썬 철학이 출렵됩니다.


저런 철학적 이유 때문에 Python을 사용하는거겠죠.


>> import this

//출력결과
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!






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

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

Jetbrain 프로그램 무료로 사용하기


학생 email 주소가 있으면 가능합니다. 기본적으로 ***.ac.kr 이면 가능한거죠.


정말 생산성을 엄청나게 올려주는 프로그램들입니다.


기본적으로 1년 사용 가능하며, 1년후 재인증 하면 됩니다.




Link : https://www.jetbrains.com/student/

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

[PowerMockup] PowerMockup이란?  (0) 2016.05.10
[VMware] 파일 공유 및 복사  (0) 2016.04.26
Visual Studio 버전  (0) 2016.04.18

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

자바 연산자 종류


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을 위해서는 추가로 돈을 내야 하지만, 그냥 강의 이수를 위해서는 그럴 필요 없음.

+ Recent posts