분류 전체보기6 영어표현: the assurance of my highest consideration 공식 문서를 번역하다보니 the assurance of my highest consideration라는 표현이 나왔다. 이게 무슨 뜻이지? 구글에 찾아보니(http://colelearning.net/who/module2/page11.html), 공식적인 서한에서 'Your sincerely'처럼 서한을 끝맺는 문구인데 최대한의 격식을 갖춘 표현이라고 한다. 링크에 따르면 WHO에서는 "Please accept, Sir (Madam), the assurance of my highest consideration"라고 쓰는 것 같지만, 내가 번역하던 문서에는 다음과 같은 형태로 사용되었다. "A" avails itself of this opportunity to renew to "B" the assurance.. 2019. 11. 3. TypeError: 'type' object does not support item assignment 특정 문자열 "XX + YY + ZZ"를 정규표현식으로 찾을 일이 있었는데, 정규표현식에서 '+'는 그 자체로 기능이 있기 때문에 '+'를 '\+'로 바꿔줘야 했다. 그래서 처음에 생각한 코드: for idx, char in enumerate(string): if char == '+': string[idx] = "\+" 하지만 바로 나타난 것은 TypeError: 'type' object does not support item assignment 이유를 찾아보니 파이썬에서 string 타입은 immutable, 즉 변경 불가능하다는 얘기다. 그러면 새로운 스트링을 생성하는 수 밖에 없다. new_string = "" for char in string: if char == '+': new_string +=.. 2019. 11. 3. 이전 1 2 다음