'Programming/python(파이썬)'에 해당되는 글 82건

  1. 2022.02.25 opencv python
  2. 2022.02.25 python / opencv mouse event
  3. 2021.06.14 python op overload magic method
  4. 2021.04.16 pythonpath
  5. 2021.04.07 python yield
  6. 2020.01.14 python 공부
  7. 2020.01.11 python 반복문 for in range()
  8. 2020.01.11 python print 와 while 문
  9. 2020.01.11 오랫만에 한가로움?
  10. 2020.01.10 python split

파이썬에서  openCV highgui를 전체 화면으로 돌려보기

 

[링크 : https://www.javatpoint.com/opencv-mouse-event]

 

full screen (fail)

[링크 : https://gist.github.com/ronekko/dc3747211543165108b11073f929b85e]

 

cv2.waitkey ord

[링크 : https://stackoverflow.com/questions/14494101/using-other-keys-for-the-waitkey-function-of-opencv]

'Programming > python(파이썬)' 카테고리의 다른 글

pdb  (0) 2022.03.14
python debug (pdb)  (0) 2022.03.04
python / opencv mouse event  (0) 2022.02.25
python op overload magic method  (0) 2021.06.14
pythonpath  (0) 2021.04.16
Posted by 구차니

해보니 리눅스에서도 좀 헷갈려 하는지

터치는 마우스 이벤트로 넘어가지 않네. 어떤 이벤트를 통해 터치스크린 손 터치와 펜 터치를 인식하려나?

 

[링크 : https://www.javatpoint.com/opencv-mouse-event]

'Programming > python(파이썬)' 카테고리의 다른 글

python debug (pdb)  (0) 2022.03.04
opencv python  (0) 2022.02.25
python op overload magic method  (0) 2021.06.14
pythonpath  (0) 2021.04.16
python yield  (0) 2021.04.07
Posted by 구차니

텐서플로우 보다보니 텐서곱으로 * 연산이 새롭게 정의되어 찾아보니

magic method 라는 이름으로 오버로드를 구현한 듯.

 

[링크 : https://velog.io/@hyeseong-dev/Python-magic-method%EB%9E%80]

[링크 : https://stackoverflow.com/questions/3188666/python-operator-overloading-a-specific-type]

'Programming > python(파이썬)' 카테고리의 다른 글

opencv python  (0) 2022.02.25
python / opencv mouse event  (0) 2022.02.25
pythonpath  (0) 2021.04.16
python yield  (0) 2021.04.07
python 공부  (0) 2020.01.14
Posted by 구차니

'Programming > python(파이썬)' 카테고리의 다른 글

python / opencv mouse event  (0) 2022.02.25
python op overload magic method  (0) 2021.06.14
python yield  (0) 2021.04.07
python 공부  (0) 2020.01.14
python 반복문 for in range()  (0) 2020.01.11
Posted by 구차니

generator 라는 문법을 위한 키워드?

python 3.3 이후 부터 지원한다고 한다.

 

근데 봐도 이해가 쉽지 않네..

 

[링크 : https://wikidocs.net/16069]

[링크 : https://kkamikoon.tistory.com/90]

'Programming > python(파이썬)' 카테고리의 다른 글

python op overload magic method  (0) 2021.06.14
pythonpath  (0) 2021.04.16
python 공부  (0) 2020.01.14
python 반복문 for in range()  (0) 2020.01.11
python print 와 while 문  (0) 2020.01.11
Posted by 구차니

dictionary 라고 하는 녀석은 node.js 에서 json 객체와 같은 녀석으로 보이는데..

아무튼 dictionary라고 하니 그렇게 표현을 해주자 -_-

 

dictionary는 {}

list는 []

tuple은 () 으로 표기되며

 

dictionary와 tuple은 [0]을 통해서 접근이 가능하고

dictionary는 ['apple'] 식으로 접근방법이 추가된다.

 

list는 []로 접근할 수 없으며, append(), pop() 등을 통해 stack이나 queue로 사용이 가능하다.

대신 list 답게 정렬등의 기능을 지원한다.

'Programming > python(파이썬)' 카테고리의 다른 글

pythonpath  (0) 2021.04.16
python yield  (0) 2021.04.07
python 반복문 for in range()  (0) 2020.01.11
python print 와 while 문  (0) 2020.01.11
오랫만에 한가로움?  (0) 2020.01.11
Posted by 구차니

왜 열거형(sequence)를 따라서 for문을 사용하게 했는지 모르겠지만..

일단은 열거형은 []로 나열되는 tuple의 list 혹은 array라고 하는데

node.js와 비교하면 배열을 foreach 로 반복하도록 문법을 제한한 느낌이라고 해야하나?

 

[링크 : https://www.w3schools.com/python/ref_func_range.asp]

[링크 : https://www.learnpython.org/en/Loops]

'Programming > python(파이썬)' 카테고리의 다른 글

python yield  (0) 2021.04.07
python 공부  (0) 2020.01.14
python print 와 while 문  (0) 2020.01.11
오랫만에 한가로움?  (0) 2020.01.11
python split  (0) 2020.01.10
Posted by 구차니

 

if guess == number:
    print('same')
elif guess < number:
    print('larger then')
else:
    print('lesser then')

 

node.js와는 다르게 문자열과 숫자를 마음대로 + 로 출력할 수가 없다.

그리고 while 문에 대해서도 특이하게 else가 붙어서 마지막 조건에서 벗어날때 무언가를 할 수 있다.

(무슨 용도로 이걸 만들었을까..)

cnt = 10;

while cnt > 0:

cnt = cnt - 1;

print('cnt:', cnt);

else:

print('cnt <= a', cnt);

 

[링크 : https://www.opentutorials.org/module/2980/17535]

'Programming > python(파이썬)' 카테고리의 다른 글

python 공부  (0) 2020.01.14
python 반복문 for in range()  (0) 2020.01.11
오랫만에 한가로움?  (0) 2020.01.11
python split  (0) 2020.01.10
python 겅부  (0) 2020.01.09
Posted by 구차니

머 애들이랑 놀아주는게 한가로울리가 없지만

그래도 마음 편하게 가족이랑 있으니 좋긴하네

'Programming > python(파이썬)' 카테고리의 다른 글

python 반복문 for in range()  (0) 2020.01.11
python print 와 while 문  (0) 2020.01.11
python split  (0) 2020.01.10
python 겅부  (0) 2020.01.09
python 관련 문서들  (0) 2020.01.09
Posted by 구차니

파싱을 위해 split 함수 혹은 tokenizer를 찾고 있는 중.

(regexp_split 같은 것도 있으려나?)

 

[링크 : https://wayhome25.github.io/python/2017/02/26/py-14-list/]

[링크 : https://wikidocs.net/13]

[링크 : https://www.w3schools.com/python/ref_string_split.asp]

[링크 : https://mainia.tistory.com/5624]

 

+

[링크 : https://stackoverflow.com/questions/13209288/python-split-string-based-on-regex]

'Programming > python(파이썬)' 카테고리의 다른 글

python print 와 while 문  (0) 2020.01.11
오랫만에 한가로움?  (0) 2020.01.11
python 겅부  (0) 2020.01.09
python 관련 문서들  (0) 2020.01.09
python exception  (0) 2020.01.02
Posted by 구차니