Fun & Other

PYTHON에 대한 찬사 - Magpi Feb. 2018. Issue 66. page 98

지구빵집 2018. 2. 19. 11:25
반응형




PYTHON의 찬사 - Magpi Feb. 2018. Issue 66. page 98


Matt Richardson이 파이썬을 좋아하게 된 이유를 설명합니다.


파이썬 프로그래밍 언어를 이기기가 어렵습니다. 강력하고 배우기 쉽습니다. 다양한 목적에 적합합니다.


Raspberry Pi에 대한 프로그래밍을 시작하려는 사람을 만날 때마다 나는 종종 Python을 사용해 보라고 제안합니다. 위의 이유로 언어 자체가 훌륭 할뿐만 아니라 풍부한 무료 자원과 파이썬에 대한 방대한 지원 커뮤니티가 바로 지금 최고의 언어 중 하나입니다.

BASIC에서 어린 아이들로 프로그램하는 것을 배웠고 십대 때 C와 C ++로 옮겼습니다. 또한 자바와 자바 스크립트 같은 다른 언어들도 사용했습니다.

요즘 파이썬을 독점적으로 사용합니다.

나는 다른 언어를 노크하는 것이 아닙니다. 많은 사람들은 그들 자신의 특별한 목적과 힘을 가지고있다.


그러나 최고의 올라운드 프로그래밍 언어에 대한 상을 받았다면, 파이썬이이 언어를 획득해야한다고 생각합니다.

초급 프로그래머에게는 파이썬이 시작하기에 좋은 언어입니다. 이 구문은 다른 프로그래밍 언어와 비교하면 이해하기 쉽습니다. 파이썬은 다른 데이터 유형으로 작업하기도 쉽습니다.

초보자에게는 학습 곡선이 훨씬 가파르다.


파이썬은 처음 시작하는 사람들에게 매우 유용하지만, 초보자를위한 것은 아닙니다. 파이썬은 전문적이고 학문적인 환경에서 사용되고 심각한 어려움을 겪습니다.

개인적으로 모든 종류의 프로젝트에 Python을 사용합니다. 최근에 다가오는 휴가를위한 식사 예약이 어려웠습니다.

몇 시간 만에 필자는 Python 스크립트를 작성하여 몇 분마다 가용성을 확인하여 레스토랑의 온라인 예약 시스템을 확인했습니다. 예약이 열리면 내 전화로 푸시 알림을 보냅니다. 스크립트는 내 네트워크에 연결된 Raspberry Pi에서 실행됩니다.


Python Requests 라이브러리 덕분에 스크립트가 웹 사이트 양식을 통해 쿼리를 제출하고 응답을 기다리는 것이 쉬웠습니다. 간편한 사용을위한 라이브러리

Pushbullet iOS 앱을 사용하면 휴대 전화에서 즉각적인 알림을 쉽게받을 수있었습니다. 나는 결코 파이썬의 전문가는 아니지만이 프로젝트를 얼마나 빨리 수행 할 수 있었는지 믿을 수 없습니다. 저는 파이썬 자체에 많은 기여를했습니다.


Raspberry Pi로 물리적 인 프로젝트를 만들고 있다면 GPIO 핀에 액세스하고 전자 장치로 작업하는 데 대한 강력한 지원이 있습니다. GPIO Zero Python 라이브러리를 사용하면 LED, 버튼, 모터 및 센서와 같은 전자 부품으로 작업하는 것이 매우 쉽고 직관적입니다. MicroPython의 출현으로 이제 Python을 사용하여 ESP8266 WiFi SoC와 같은 마이크로 컨트롤러를 프로그래밍 할 수도 있습니다.


파이썬 사용은 널리 보급되어 온라인에서 문서화 된 모든 것에 대한 해결책을 제시합니다. GitHub 및 StackOverflow와 같은 사이트에서 사용 통계를 검토하십시오. 파이썬이 목록의 최상위에있을 수는 없지만, 일반적으로 상위 5 위 안에 속하며, 내가 선택한 모든 곳에서 더 많은 사용이 증가하고 있습니다. 특정 언어를 사용하는 사람들이 많을수록 학습 및 문제 해결을위한 더 많은 지원 커뮤니티와 리소스가 필요합니다.


물론, 나는 당신이 가장 편한 프로그래밍 언어와 당신의 필요에 가장 적합한 프로그래밍 언어를 사용해야한다고 믿는다.


그러나 배우기 쉽고 유연하며 대규모 커뮤니티 지원이 필요한 범용 프로그래밍 언어를 찾고 있다면 Python을 추천 할 수 없습니다.

충분히. 나는 파이썬 악 대차에 뛰어 들었고 나는 뒤돌아 보지 않았다.




원문 : IN PRAISE OF PYTHON


Matt Richardson explains why he has grown to love Python


it’s tough to beat the Python programming language. It’s powerful, easy to learn, and

is suitable for many different purposes.

Whenever I meet someone looking to get started with programming on Raspberry Pi, I often suggest that they give Python a try. Not only is the language itself great for the above reasons, but the abundant free resources and massive community of support around Python make it one of the best languages out there right now.

I learned to program in BASIC as a young kid and moved on to C and C++ as a teenager. I’ve also worked with a few other languages such as Java and JavaScript. 

These days, I use Python exclusively.

I don’t mean to knock other languages; many have their own particular purposes and strengths.


But if there were an award for best all-around programming language, I think Python should win it.

For beginner programmers, Python is a great language to get started with. Its syntax is very easy to understand compared to most other programming languages out there. Python also makes it easy to work with different data types, which means the

learning curve is much less steep for beginners. 


And although Python is great for people just starting out, it doesn’t mean that it’s only for beginners. Python is used in professional and academic settings and does some serious heavy lifting.

I personally use Python for all kinds of projects. Recently, I missed out on a hard-to-get dining reservation for an upcoming vacation. 

In a couple of hours, I managed to write a Python script to check the restaurant’s online reservation system every few minutes for availability. If a reservation opened up, it would send a push alert to my phone. The script runs on a Raspberry Pi connected to my network. 


Thanks to the Python Requests library, it was easy to have my script submit the query through the website’s form and listen for a response. An easy-to-use library for

the Pushbullet iOS app made it easy to get instant alerts on my phone. I am by no means an expert in Python, but I couldn’t believe how quickly I was able to get this project working. I give a lot of credit to Python itself for that.


If you’re making physical projects with Raspberry Pi, there’s very strong support for accessing the GPIO pins and working with electronics. With the GPIO Zero Python library, it’s very easy and intuitive to work with electronic components like LEDs, buttons, motors, and sensors. And now with the advent of MicroPython, you can even use Python to program a microcontroller such as the ESP8266 WiFi system‑on-chip.


Use of Python is so widespread that there’s pretty much a solution to everything documented online. Review the usage stats at sites like GitHub and StackOverflow. While Python might not be at the top of the list, it’s typically among the top five, and is trending towards more use everywhere that I checked. The more people that are using a particular language means a larger community of support and more resources for learning and troubleshooting.


Of course, I believe that you should use whatever programming language you’re most comfortable with and the one that fits your needs the best. 


But if you’re looking for a general purpose programming language that’s easy to learn, is flexible, and has a large community support, I can’t recommend Python

enough. I’ve jumped on the Python bandwagon and I haven’t looked back.




반응형