python 날짜 관련 import datetime now = datetime.datetime.now() print(now) # 2018-07-28 12:11:32.669083 nowDate = now.strftime('%Y-%m-%d') print(nowDate) # 2018-07-28 nowTime = now.strftime('%H:%M:%S') print(nowTime) # 12:11:32 nowDatetime = now.strftime('%Y-%m-%d %H:%M:%S') print(nowDatetime) # 2018-07-28 12:11:32 timeStr = '2018-07-28 12:11:32' Thistime = datetime.datetime.strptime(timeStr, '%Y-%m-%d %H:%M:%S').. Python 6년 전
django template에서 함수 호출방법 http://blog.naver.com/PostView.nhn?blogId=agney&logNo=60184520189 Python 6년 전
PyCharm, phpStorm 관련 팁 pycharm에서 DB Navigater사용시 테이블에 데이터 안보이거나 데이터 변경이 안될때commit 해주거나, Settings > Properties > Auto-Commit 체크 코드 힌트(자동완성) 활성화하기File > Settings > Editor > Code Completion > Autopopup code completion 체크 파일 여는 탭 갯수 제한 하지 않기File > Settings > Editor >General > Editot Tabs > Show tabs in one row, Hide tabs if there is no space 둘다 체크해제Tab limit 갯수 조정 수정된 파일 탭에 * 표시 하기 File > Settings > Editor >General > .. Python 6년 전
Python 3.6 설치 (CentOS7) ius repository 설치 # yum install -y https://centos7.iuscommunity.org/ius-release.rpm * iuscommunity.org 리디렉션 2020-06-01 중단 centOS6 # yum install -y https://repo.ius.io/ius-release-el6.rpm centOS7 # yum install -y https://repo.ius.io/ius-release-el7.rpm repository를 추가했으니 update # yum update 설치 # yum install python36u python36u-libs python36u-devel python36u-pip 확인 # python3.6 -V 설치경로 확인 # which py.. Python 6년 전