개발 & 계발/Python (2.7)
-
Python Powerpoint 관련 URL개발 & 계발/Python (2.7) 2021. 2. 2. 16:01
pip로 python-pptx 를 설치하면 됩니다. python-pptx.readthedocs.io/en/latest/user/quickstart.html Getting Started — python-pptx 0.6.18 documentation Getting Started A quick way to get started is by trying out some of the examples below to get a feel for how to use python-pptx. The API documentation can help you with the fine details of calling signatures and behaviors. Hello World! example from pptx im pyt..
-
PHP문법과의 비교 001 - (PHP) explode, (Python) split개발 & 계발/Python (2.7) 2018. 11. 20. 09:32
PHP에서는 문자열을 나눌 때 explode() 함수를 쓴다.물론 PHP에서 split이 없는 건 아니다. 하지만 아래에서 보는 것처럼 PHP에서는 split 함수가 7.0.0 버전부터 사라졌다. 우야되었든... "This is 건덕지" 라는 문자열을 PHP의 explode와 Python의 split을 사용하여 분리해보면 다음과 같다. >$str = "This is 건덕지";$temp = explode(" ", $str);print_r($temp); >import stringstr = "This is 건덕지";temp = str.split(" ");print repr(temp)