목록클라우드컴퓨팅 (134)
스택큐힙리스트
설치하는 데 어려움을 겪고 있습니다. 제 .bash_profile을 수정하고 다음과 같은 명령을 사용하여 심볼릭 링크를 만들었습니다: ln -s /Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl ~/bin/subl 하지만 위 명령을 입력하면 다음과 같은 오류가 발생합니다: ln: /Users/my_username/bin/subl: 파일이나 디렉토리가 없습니다 터미널이 파일을 찾는 위치가 잘못된 것 같아요. 왜 내 홈 디렉토리의 bin 폴더를 가리키려고 하나요?답변 1/usr/local/bin 대신에 ~/bin에 심볼릭 링크를 생성하고, /usr/local/bin이 PATH에 포함되어 있는지 확인하세요. $ ln -s /Application..
로컬 브랜치를 원격 저장소의 브랜치와 동일하게 재설정하는 방법은 무엇인가요? 다음을 시도해봤습니다: git reset --hard HEAD 하지만 git status 명령은 수정된 파일이 있다고 주장합니다: 브랜치 master에 있습니다 커밋을 위한 변경 사항: (변경 내용을 취소하려면 git reset HEAD ...을 사용하세요) 수정됨: java/com/mycompany/TestContacts.java 수정됨: java/com/mycompany/TestParser.java 답변 1원격 브랜치와 정확히 일치하도록 브랜치를 설정하는 것은 두 단계로 수행할 수 있습니다: git fetch origin git reset --hard origin/master 이를 수행하기 전에 현재 브랜치의 상태를 저장하려..
TensorFlow 1.10.1을 설치했지만, TensorFlow를 가져오려고 할 때 TensorFlow 버전 1.10.0이 필요하다는 메시지가 표시되었습니다. 그래서 해당 버전을 설치했고, 이제 다음과 같은 경고가 발생합니다:>>> import tensorflow C:\Users\PC\Anaconda3\envs\tut\lib\site-packages\tensorflow\python\framework\dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)ty..
나는 파이썬을 처음 시작했고 재귀적인 방식으로 생각하는 데 매우 서툴러요. 이 코드는 IndexError: string index out of range 오류를 발생시킵니다. 그리고 어떻게 수정해야 할지 감이 전혀 안 와요. def get_permutations(sequence): def permutationhelp(sequence, chosen): if sequence==: print(chosen) else: for i in range(len(sequence)): c = sequence[i] chosen += c sequence = sequence[i+1:] permutationhelp(sequence, chosen) sequence = c + sequence chosen = chosen[:-1] de..