묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결프로그래밍, 데이터 과학을 위한 파이썬 입문
코드를 작성해봤는데 어디 가 잘못된건지 모르겠습니다 ㅠㅜ
어디가 잘못된건지 모르겠습니다. ㅜㅜ dict = {'America': 1, 'UnitedKingdom': 44, 'Germany': 49, 'SouthKorea': 82, 'Japan': 81} def find_the_key(dict): list_keys_in_dict = list(dict.keys()) list_values_in_dict = list(dict.values()) n = int(input("찾고 싶은 나라의 번호 코드를 입력하시오 \n (00을 누르면 종료) \n")) while n != 00: if n in list_values_in_dict: idx_of_values = list_values_in_dict.index(n) result = list_keys_in_dict[idx_of_values] + "입니다" elif n not in list_values_in_dict: result = "번호 코드가 없습니다 다시 입력하세요" n = int(input("찾고 싶은 나라의 번호 코드를 입력하시오 : \n 00을 누르면 종료")) else: result = "종료합니다" return print(result) find_the_key(dict)
-
미해결공공데이터로 파이썬 데이터 분석 시작하기
missingno import에러
missingno 모듈을 import할 때 에러가 뜨면 어떻게 해야하나요?
-
미해결[NLP] IMDB 영화리뷰 감정 분석을 통한 파이썬 텍스트 분석과 자연어 처리
nltk is not defined 에러메시지
KaggleWord2VecUtility 모듈을 호출해서 매서드 실행시키면 NameError: name 'nltk' is not defined 라는 에러 메시지가 뜹니다. nltk.download('punkt') 나 import nltk 를 해도 해결이 되지 않는데 조언 부탁드릴게요!
-
미해결Klaytn 클레이튼 블록체인 어플리케이션 만들기 - 이론과 실습
txHash undefined
0.1klay 지급 한 후에 #transaction 내용 바꿔줄 때 receipt.txHash가 undefined 더라고요 transactionHash로 하니까 나오는데 언제 바뀐건가요?
-
미해결파이썬으로 구현하는 거래 자동화 봇 (챗봇)
telegram bot 관련 - 최근에 작동을 안합니다.
얼마전까지 잘 반응했는데, 갑자기 안됩니다. pip uninstall python-telegram telegram pip install python-telegram-bot 으로 삭제 후 재 설치해도 동일한 에러가 뜹니다. ------------------- 에러 메세지 ------------------- C:\Anaconda3\python.exe C:/Users/USER/PycharmProjects/trade-master/inflearn_telegram.py Traceback (most recent call last): File "C:/Users/USER/PycharmProjects/trade-master/inflearn_telegram.py", line 1, in <module> import telegram File "C:\Anaconda3\lib\site-packages\telegram\__init__.py", line 46, in <module> from .files.file import File File "C:\Anaconda3\lib\site-packages\telegram\files\file.py", line 23, in <module> from future.backports.urllib import parse as urllib_parse File "C:\Anaconda3\lib\site-packages\future\backports\__init__.py", line 14, in <module> import_top_level_modules() File "C:\Anaconda3\lib\site-packages\future\standard_library\__init__.py", line 810, in import_top_level_modules with exclude_local_folder_imports(*TOP_LEVEL_MODULES): File "C:\Anaconda3\lib\site-packages\future\standard_library\__init__.py", line 781, in __enter__ module = __import__(m, level=0) File "C:\Users\USER\PycharmProjects\trade-master\test.py", line 13, in <module> bot = telegram.Bot(token = my_token) AttributeError: module 'telegram' has no attribute 'Bot' Process finished with exit code 1
-
미해결EOSJS를 이용한 EOS 심플 월렛 만들기
안녕하세요 질문드립니다
저는 비개발자면서 eos에 대해 공부하고있는중입니다. 기초적인 질문일 수 있는데요.. node getInfo.js를 실행했을때 에러가 나오는데 Eos(config).getInfo((error, info) => { ^ TyperError: Eos is not a function 이라는 에러가 나옵니다. node 및 eosjs 재설치를하면서 다시해보는데도 같은 에러가 나와 질문드립니다 ------------------------------- ubuntu 16.04 node v10.15.3 npm v6.4.1
-
미해결리눅스 시스템 프로그래밍 - 이론과 실습
cat /proc/cpuinfo 입력시 processor가 0번 1개입니다.
cat /proc/cpuinfo 입력시 processor가 0번 1개입니다. processor가 1개 밖에 없는데 어떻게 하면 실습을 진행할 수 있을까요? 컴파일 후 ./affinity를 해도 마지막에 프로세스가 바뀔수 가 없는데 어떻게 하면 실습을 할 수가 있을까요?
-
미해결밑바닥 부터 시작하는 머신러닝 입문
정밀도와 민감도가 잘 이해되지 않습니다.
정밀도와 민감도의 차이가 잘 이해되지 않습니다. 예나 언어적으로 풀어서 이해하기 쉽게 말씀해주실수 있나요? 수학적으로는 분모가 예측값으로 조건부를 걸었냐, 실제값으로 조건부를 걸었냐의 차이 뿐이지만 의미적으로는 더 깊은 의미가 있을 듯한데.
-
미해결리눅스 시스템 프로그래밍 - 이론과 실습
shared는 왜 0이 아닌 값들이 나오는거죠?
mutex lock을 하지 못해서 순서가 뒤죽박죽이어도 결국 20000번씩 진행을 하고 끝나니까 0이 되지 않나요? 동영상을 다시 보니까 헷갈리네요
-
미해결리눅스 시스템 프로그래밍 - 이론과 실습
선생님 질문있습니다
pthread_create 3번째 인자인 함수를 넘겨줄 때 man page 보면 void * 반환형의 함수 주소를 넘겨주는데 선생님이 작성해주신 코드는 그냥 함수명만 넘겼는데 제가 착각하는 것인가요? pthread_create(... , ..., &child_thread_main, ...) 라고 생각이 드는데요..
-
미해결신입 프로그래머를 위한 실전 JSP 강좌
Class.forName(driver);
앞서 DriverManager, Connection, Statement, ResultSet의 개념들은 이해가 잘 됐습니다. 그런데 항상 선행되는 Class.forName(driver);는 뭔지 궁금합니다.
-
미해결Klaytn 클레이튼 블록체인 어플리케이션 만들기 - 이론과 실습
npm install 부분에서 에러가 뜹니다.
gyp ERR! configure error gyp ERR! stack Error: Command failed: C:\Users\82103\Anaconda3\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "<string>", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12) gyp ERR! stack at ChildProcess.emit (events.js:189:13) gyp ERR! stack at maybeClose (internal/child_process.js:970:16) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) gyp ERR! System Windows_NT 10.0.17134 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\82103\Desktop\klaytn\addition-game-starter\node_modules\keccak gyp ERR! node -v v10.15.3 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! keccak@1.4.0 rebuild: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the keccak@1.4.0 rebuild script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install? npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\82103\AppData\Roaming\npm-cache\_logs\2019-05-15T08_09_22_949Z-debug.log "Keccak bindings compilation fail. Pure JS implementation will be used." > scrypt@6.0.3 install C:\Users\82103\Desktop\klaytn\addition-game-starter\node_modules\scrypt > node-gyp rebuild C:\Users\82103\Desktop\klaytn\addition-game-starter\node_modules\scrypt>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) gyp ERR! configure error gyp ERR! stack Error: Command failed: C:\Users\82103\Anaconda3\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "<string>", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12) gyp ERR! stack at ChildProcess.emit (events.js:189:13) gyp ERR! stack at maybeClose (internal/child_process.js:970:16) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) gyp ERR! System Windows_NT 10.0.17134 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\82103\Desktop\klaytn\addition-game-starter\node_modules\scrypt gyp ERR! node -v v10.15.3 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN klay-dapp-boilerplate@0.0.1 No repository field. npm WARN klay-dapp-boilerplate@0.0.1 No license field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! scrypt@6.0.3 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the scrypt@6.0.3 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\82103\AppData\Roaming\npm-cache\_logs\2019-05-15T08_09_26_187Z-debug.log Baobab에 스마트 계약 배포 #1 에서 진행하다가 이런 에러가 뜹니다. 어느 부분이 잘못되었는지 알려주시면 감사하겠습니다.
-
미해결코틀린 기반 안드로이드 앱개발 고급 3단계
강의 내용 그대로 따라하고 실습해보았는데 가상머신이 강제종료됩니다
...
-
미해결Klaytn 클레이튼 블록체인 어플리케이션 만들기 - 이론과 실습
안녕하세요, 강좌 오픈일관련 질문있습니다!
혹시 이 강좌 몇월 몇일에 오픈했는지 알려주실수있나요? 감사합니다.
-
미해결리액트 처음이시라구요? React JS로 웹 서비스 만들기!
access denied
Hello permission to access has been denied so npm install -g create-react-app didn't work. Is it possible to fix this? 안녕하세요 npm install 을 하려고 하는데 자꾸 설치가 안되네요... access denied 라고 나오는데 설치할 수 있는 방법이 없을까요?
-
미해결프로그래밍, 데이터 과학을 위한 파이썬 입문
Enumerate & zip 코드 질문입니다
<코드1> alist = ["a1","a2","a3"] blist = ["b1","b2","b3"] for i, (a,b) in enumerate(zip(alist,blist)): print(i,a,b) 여기서 볼드체 해놓은 for문 안에 a,b를 소괄호 해주는 정확한 이유가 궁굼합니다. zip형태는 튜플형태로 묶어주기 때문에 언팩킹을 위해 소괄호로 해준다고 짐작하고 넘어가려고 했지만 <코드2> a,b,c = zip((1,2,3),(10,20,30),(100,200,300)) print(a,b,c) 이 코드로 언팩킹할때 그냥 a,b,c 로 해줘도 튜플형태로 언팩킹이 되는대 왜 <코드1>의 for문안에 a,b는 반드시 튜플형태로 만들어 줘야 되는가요?
-
미해결Flutter 입문 - 안드로이드, iOS 개발을 한 번에 (with Firebase)
버튼 클릭시 무응답일 경우
onPressed: () => _changeMessage() ), 반드시 함수표시 해줄것..
-
미해결파이썬 프로그래밍
예제는 어디있나요?
죄송한데 혹시 예제는 어디있을까요??
-
미해결유니티 기초 강좌 - 기획부터 사용까지
그림 입히는 창이 잠겨있는데 이건 유니티 구독을 해야 열리는건가요?
그림 입히는 창이 잠겨있는데 이건 유니티 구독을 해야 열리는 건가요?
-
미해결된다! 일러스트레이터 CC
안녕하세요, 선생님. 예제파일은 어디서 받을 수 있을까요?
안녕하세요, 선생님. 예제파일은 어디서 받을 수 있을까요? 답변 부탁드립니다 ^^