Python(2)
-
Day4 Two Pointers - LeetCode 14day
class Solution: def reverseString(self, s: List[str]) -> None: """ Do not return anything, modify s in-place instead. """ s.reverse() https://leetcode.com/problems/reverse-string/?envType=study-plan&id=algorithm-i Reverse String - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 파이썬..
2022.12.15 -
What is pip's equivalent of `npm install package --save-dev`?
제목 그대로다. https://github.com/jnoortheen/pipm 이런거 따로 해주는 패키지를 누가 만들기도 했네. 일단 기본적으론 이렇게 한다. (dev 환경 용도 가 아닐 경우 확실한 방법이다.) pip install package && pip freeze > requirements.txt 파이썬 개발자들은 이런걸 어찌 하고 있는거지? 흠.. js 만 써오다 보니, 이런식으로 쓰는게 최선이란 생각은 들지 않는데 뭐가 있는데 나만 모르는건가 싶네. https://stackoverflow.com/questions/19135867/what-is-pips-equivalent-of-npm-install-package-save-dev
2022.09.23