import pyautogui
import datetime as dt
import time

 

endhope=False
while not endhope:
tim=dt.datetime.now()
if tim.second==0:
pyautogui.click()
endhope=True
print(tim)
elif tim.second>=59 and tim.microsecond>800000:
time.sleep(0.0001)
print(tim)
else:
time.sleep(0.1)
print(tim)

https://harryp.tistory.com/831 [Park's Life]

 

[Python] 파이썬 pip 설치 시 SSL 인증서 문제 해결 (error: [SSL: CERTIFICATE_VERIFY_FAILED])

안녕하세요. 파이썬의 라이브러리 설치는 pip로 간단하게 할 수 있습니다. 그런데 외부 네트워크 접속이 자유롭지 못한 네트워크 (회사 네트워크 등)에서는 SSL 인증서 문제 등으로 pip를 통한 라이브러리 다운 및..

harryp.tistory.com

 

안녕하세요.

 

파이썬의 라이브러리 설치는 pip로 간단하게 할 수 있습니다.

 

그런데 외부 네트워크 접속이 자유롭지 못한 네트워크 (회사 네트워크 등)에서는 SSL 인증서 문제 등으로 

 

pip를 통한 라이브러리 다운 및 설치가 되지 않을 수 있습니다.

 

이런 상황에서 해결 방법입니다.

 

 

pip의 옵션 중 --trusted-host 옵션을 사용해주면 됩니다.

 

pip에서 라이브러리를 다운받는 서버인

 

pypi.org 

 

files.pythonhosted.org 를 해당 옵션으로 지정 후 install을 해주시면 됩니다.

 

 

ex) pip --trusted-host pypi.org --trusted-host files.pythonhosted.org install 라이브러리명

 

 

저 같은 경우 alias로 등록을 해두었습니다. (관련 포스팅 - http://harryp.tistory.com/171)

 

vi로 ~/.bashrc 파일을 열어 제일 마지막에 다음 내용을 추가했습니다.

 

 

alias pip='pip --trusted-host pypi.org --trusted-host files.pythonhosted.org'



출처: https://harryp.tistory.com/831 [Park's Life]

SELECT DISTINCT a.name
    FROM sysobjects AS a
                   LEFT JOIN syscomments AS ON a.id = b.id
 WHERE a.xtype = 'P'
       AND b.text LIKE '%찾은문자열%'