목록빅데이터 (364)
스택큐힙리스트
그 객체는 왜 json.dump와 함께 실패하나요? |와 '를 포함하는 키를 가진 다른 객체가 많이 있습니다... 현재로서는 다른 사람들이 이를 테스트하는 방법이 없습니다. 데이터베이스 객체의 피클 버전을 게시해야 할까요? 추가 참고 사항 json.dumps 아래의 결과 객체는 괜찮으므로, 문제가 데이터베이스 크기와 관련이 있는지 여쭤보고 싶습니다. {rooney:js.db['songsbyid'][rooney]} {Rooney|Rooney's Lost Album|The Kids After Sunset|The Kids After Sunset.itunes.mp3: {'album': [uRooney's Lost Album], 'title': [u'The Kids After Sunset'], 'artist': ..
간단한 프로그램을 만들어서 숫자학에 따른 행운의 번호를 알려주는 중입니다. 하지만 다음과 같은 에러가 발생합니다: File number.py, line 12, in sumln = (int(sumall[0])+int(sumall[1])) TypeError: 'int' object is not subscriptable 제 스크립트는 다음과 같습니다: birthday = raw_input(생년월일은 언제인가요(mm/dd/yyyy)? ) summ = (int(birthday[0])+int(birthday[1])) sumd = (int(birthday[3])+int(birthday[4])) sumy= (int(birthday[6])+int(birthday[7])+int(birthday[8])+int(birthda..
elif(listb[0] == -test): run_all.set(testview) listb.pop[0] 오류: Tkinter 콜백에서 예외 처리가 발생했습니다. 최근 호출된 함수 line /tools/python/2.7.2/lib/python2.7/lib-tk/Tkinter.py, line 1410, return self.func(*args) File ./edit.py, line 581, in populate listb.pop[0] TypeError: 'builtin_function_or_method' 객체는 인덱스화할 수 없습니다. 위 코드에서 마지막 pop 문은 라인 번호 581을 나타냅니다. run_all은 StringVar입니다. 왜 이 오류가 발생하고 어떻게 해결할 수 있을까요?답변 1당신이..
이 코드는 다음 오류 메시지를 반환합니다: with open (infile, mode='r', buffering=-1) as in_f, open (outfile, mode='w', buffering=-1) as out_f: TypeError: coercing to Unicode: need string or buffer, file found # 각 파일을 읽거나 수정하기 위해 열기 infile=open('110331_HS1A_1_rtTA.result','r') outfile=open('2.txt','w') import re with open (infile, mode='r', buffering=-1) as in_f, open (outfile, mode='w', buffering=-1) as out_f: f ..