-
[Python] input()과 sys.stdin
sys.stdin 알고리즘 문제를 풀 때, 파이썬의 input()은 실행시간이 느려서 자주 시간초과가 난다. 이럴때 sys모듈의 stdin을 사용하면 더 빠르게 input이 가능하다.. 고 하는데, 나는 input()과 sys.stdin의 차이점을 알고싶었다. input() vs sys.stdin input() input() 파이썬의 내장함수이고, 공식 문서의 'Built in function'에가면 해당 내용을 읽어 볼 수 있다. input()에 대한 파이썬 공식 문서 If the prompt argument is present, it is written to standard output without a trailing newline. The function then reads a line from ..
2021.02.09 17:02 -
윈도우에서 복사해 우분투(ubuntu)로 붙여넣기 안될 때
왜인지는 모르겠지만 가상머신 접속 후 Player > Manage > install 에서 삭제 후 재설치가 잘 되지 않아서 다른 방법으로 해결했다. 터미널창에서 다음과 같은 명령을 입력한다. # 설치된 vm tool 제거 sudo apt-get autoremove open-vm-tools # 도구 재설치 sudo apt-get install open-vm-tools-desktop 이렇게 한 후에 복사 : ctrl + insert 붙여넣기 : shift + insert 로 블럭을 지정해서 복사-붙여넣기 하거나, 윈도우의 파일을 드래그 혹은 복사-붙여넣기 했을때 파일이 잘 옮겨진다. (참고자료: https://www.python2.net/questions-785239.htm)
2021.03.30 12:32 -
[안드로이드 스튜디오] Error running 'app': Gradle project sync failed. Please fix your project and try again. / android studio Error while waiting for device: The emulator process for AVD was killed
에러메시지: Error running 'app': Gradle project sync failed. Please fix your project and try again. 또는 android studio Error while waiting for device: The emulator process for AVD was killed 해결 방법 인터넷 연결 되어있는지 확인 File > Settings > Appearance & Behavior > System Settings > Androind SDK SDK Tools 에서 Android Emulator 설치 되어있는지 확인, 업데이트 해야하면 업데이트 한다. 나의 경우에는 이렇게 해서 해결했다. 환경변수 설정도 만져보고 무슨 Grandle? 폴더도 지워보고 ..
2021.03.19 19:53