본문 바로가기
  • AI (Artificial Intelligence)

Industry 4.0/Python11

How to set python variables to true or false? Ref. stackoverflow.com/questions/12644075/how-to-set-python-variables-to-true-or-false you set a variable to true or false by assigning True or False to it: myFirstVar = True myOtherVar = False If you have a condition that is basically like this though: if : var = True else: var = False then it is much easier to simply assign the result of the condition directly: var = In your case: match_var = .. 2021. 4. 7.
Hands-On Examples for Working with DynamoDB, Boto3, and Python Ref. highlandsolutions.com/blog/hands-on-examples-for-working-with-dynamodb-boto3-and-python 정리해야 하는데 정리할 시간이.. Python을 이용한 DynamoDB 핸들이라 생각하면 되겠네요. 위 링크로 직접가셔서 예제를 참고하세요. 도움이 많이 됩니다. In this post, we’ll get hands-on with AWS DynamoDB, the Boto3 package, and Python. In my experience, I’ve found the documentation around this technology can be scattered or incomplete. I’ll do my best to explain an.. 2021. 4. 7.
The right and wrong way to set Python 3 as default on a Mac Ref. opensource.com/article/19/5/python-3-default-mac 창피한 얘기지만 새로 프로젝트를 개발하는 겸 최신 버전으로 개발하려 하였는데 여러가지로 복잡하였다. 하지만 이곳은 아주 쉽게 버전을 관리해 주었고 아주 만족하고 있다. 10년이 넘었지만 여전히 환경 설정이 가장 힘들다.. I've been dipping my toe back into Python development as I get ready to head to PyCon US. (If you're headed there as well and want to share your Python story, let me know!) When I installed a module to tinker around with.. 2021. 3. 31.
zsh: no matches found: requests[security] Ref. stackoverflow.com/questions/30539798/zsh-no-matches-found-requestssecurity Question: I am trying to run a python urllib2 script and getting this error: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/s.. 2021. 3. 31.
Getting started with AWS Kinesis using Python Ref. www.arundhaj.com/blog/getting-started-kinesis-python.html Amazon Kinesis is a fully managed stream hosted on AWS. It is used to collect and process large streams of data in real time. Along with Kinesis Analytics, Kinesis Firehose, AWS Lambda, AWS S3, AWS EMR you can build a robust distributed application to power your real-time monitoring dashboards, do massive scale batch analytics, etc. .. 2021. 3. 31.
if…elif…else in Python Ref. www.datacamp.com/community/tutorials/elif-statements-python?utm_source=adwords_ppc&utm_campaignid=898687156&utm_adgroupid=48947256715&utm_device=c&utm_keyword=&utm_matchtype=b&utm_network=g&utm_adpostion=&utm_creative=229765585183&utm_targetid=dsa-429603003980&utm_loc_interest_ms=&utm_loc_physical_ms=1011036&gclid=Cj0KCQjwmIuDBhDXARIsAFITC_63iynsnniNZ_kFR0k5K4kO4e-vQr6RqJO03NArzweHSep6AMRZc.. 2021. 3. 31.
Python에서 가장 큰 값 시간이 없어서 대충 포스트 합니다. 아주 좋은 내용입니다. 출처 : http://stackoverflow.com/questions/268272/getting-key-with-maximum-value-in-dictionary 2015. 6. 19.
Python에서 main() 함수 구현 python을 정식적으로 배운건 아니지만 간간히 소스를 수정하면서 사용해 왔었다.남의 소스를 기준으로 수정만 하다보니.. 이렇다할 소스코드를 갖고 있지 않아 정리 해보려 한다. python에서 main() 함수와 함수의 기본을 사용하는 방법이다. 간략하다. 이런.. import 파일은 빼고 하시길 바란다..clustering algorithm을 구현해서 사용하다가 문득 정리하려고 만든건데..지우지를 못했다. 출처 : rochas engine 2015. 6. 17.
A curses menu library in Python Curses Menu Library in Python Just posted on Google Code a "curses menu library" ; https://code.google.com/p/menulib-python/ My little application (also on Google Code) to mimic the digital rain in the movie Matrix using curses was a little warm-up for something a bit more interesting. I'm working on the menu of the "call-centre Management" made even earlier - that will offer the menu option of .. 2014. 4. 16.
Install PyCharm and JDK on Ubuntu 12.04 Installing Sun JDK 7 on Ubuntu 12.04: Download the sun jdk 7 tar file from hereExtract the tar file:$ tar -xvzf jdk-7u4-linux-x64.tar.gzMove extracted folder to this location:$ sudo mv jdk1.7.0_04 /usr/lib/jvm/Install new java source in system: $ sudo update-alternatives --install \/usr/bin/javac javac /usr/lib/jvm/jdk1.7.0_04/bin/javac 1 $ sudo update-alternatives --install \/usr/bin/java java .. 2014. 4. 15.
Ubuntu에서 Python 설치하기 $sudo apt-get install python3 을 입력하세요. 후에 바로 설치가 됩니다. 하지만!!! 좀 더 관리가 편할 수 있도록 파이썬 공부하기 위해서는 python3 IDLE 을 설치 하면 되는데 .. 이 경우 역시 터미널 창을 띄워서 설치하면 된다. $sudo apt-get install idel3 이라고 입력한 후, idel3 라고 터미널 창에 입력하면 IDLE창이 뜨게 된다. 제대로 설치되었는 지, 버전 확인할려면 $python -V IDLE 은 뭘까? 통합 개발 환경( Integrated Development Enviroment ) 라고 한다. 컴파일러 자체가 메뉴 방식으로 되어 있어, 사용이 간편하고 에디터에서 컴파일러에 대한 도움말까지 이용할 수 있는 환경을 말한다. =======.. 2014. 4. 15.