python
-
[Day5] 파이썬에 대해 더 알아보자AIFFEL Life 2020. 8. 14. 15:30
파이썬이 인공지능이나 빅데이터 분석에 많이 활용된다는 것은 익히 알고 있었지만, 파이썬에 익숙하지 않다면 다음 글들을 보면서 파이썬을 잘 활용할 수 있는 팁들을 확인해 보자. 1. PEP 8 -- Style Guide for Python Code https://www.python.org/dev/peps/pep-0008/ PEP 8 -- Style Guide for Python Code The official home of the Python Programming Language www.python.org 2. 파이썬 3에서는 Integer max value가 없다. 대학생때 게시판 조회수를 높여서 32bit integer max를 넘겨 마이너스로 만들어보자고 했던 기억이 난다. https://stacko..
-
[Day 3] 인공지능 개발자 되려면 리눅스를 배워라!AIFFEL Life 2020. 7. 31. 17:50
AIFFEL은 강사가 강의실에 와서 떠드는? 수업을 별로? 하지 않습니다. 모든 강의?라고 할 수 있는 것들이 온라인 컨텐츠로 제작되어 제공되고 있는데요. 들여다 보면 재미있게 만들고 잘 만들기 위해 노력하신 흔적을 곳곳에서 느낄 수 있습니다. 처음엔 이거 뭐야? 검색해 보고 그냥 혼자 공부하는 거랑 뭐가 달라?라고 생각하실 분들이 계실 지 모르겠지만, 조금만 지나면 생각이 달라집니다. 책으로 출판해도 될 만큼 깔끔하게 잘 정리되어 있고, 실습과의 연계가 너무나 잘 이뤄져 있습니다. (짝짝짝) 또 이렇게 공부하다보니 자신이 아는 부분은 빠르게 넘어가고 모르는 부분에 시간을 많이 쓸 수 있어서 더 효과적입니다. 자! 그래서 인공지능에 대해서 그냥 건너 듣거나 인터넷 검색만 조금 해봤던 제가 기대했던 첫번째..
-
In PyCharm, how to load code from the editor to console카테고리 없음 2017. 7. 22. 20:05
While I was running the code form the Problem Solving with Algorithms and Data Structures, I've encountered some pages to encourage write class codes in code editor window but running it from Python console, for example in chapter 7.6. I did not know how I can load the class code from editor in console window. After searching from the web, I found this page. Loading Code from Editor into Console..
-
In Python, how to swap two numbers without using a temp variable카테고리 없음 2017. 6. 25. 09:02
This is a very interesting question: How to swap two number variables without using a temp variable? I have actually been asked this question while being interviewed for a job. Also this is a very well-known coding interview questions; therefore some books of interview preparation cover this question, for example, Cracking the Coding Interview. The answer is here. x = x + y; // x now becomes 15 ..
-
Review on PSAD 5.5카테고리 없음 2017. 6. 10. 18:08
While I was studying "Problem Solving with Algorithms and Data Structures using Python", I encountered two things that look very interesting. First of all, I became very interested in why Python allows a comma at the end of the list. I could find a interesting discussion on a stackoverflow page. To sum up, it is allowed to make it easier to edit multi-line lists.Second thing that I caught my att..
-
Review on PSAD 3.5카테고리 없음 2017. 5. 5. 12:19
While I was studying Problem Solving Algorithms and Data Structures using Python, I found that some of you might need more explanation on how to run the code in listings. How to use pythonds? pythonds is a package that has the basic data structures written in Python. You can down load it where the book is pointing: http://www.pythonworks.org/pythonds After downloading it, you need to install it ..
-
Review on PSAD 2.4카테고리 없음 2017. 5. 4. 17:23
While I was studying Problem Solving with Algorithms and Data Structure using Python, I have found some interesting features on Python. 1. Python has a ord() It is very interesting that there's a function returning a integer representing the Unicode code point of the character. Please have a look at this page for buit-in functions: https://docs.python.org/2/library/functions.html 2. Declaring an..
-
PSAD review on 1.13카테고리 없음 2017. 5. 2. 13:01
While I was studying PSAD, I found some interesting python features and would like to give some feedback. 1. Python has //, even tough it doesn't have ++ Interestingly, Python has '//' operator. What it does is returning the division value flooring the fraction. Please check http://stackoverflow.com/questions/183853/in-python-2-what-is-the-difference-between-and-when-used-for-division On the oth..