본문 바로가기
Pages

[Python] String : 문자열

by ds31x 2023. 10. 6.

String(문자열)이란?

https://dsaint31.tistory.com/515

 

[Python] (Data) Type : Summary

1. Type 이란? Programming에서 사용되는 모든 value 혹은 object 들의 종류 를 (data) type이라고 부름. 수학에서 숫자의 종류(type)를 실수, 정수, 자연수 등으로 나누는 것을 생각하면 쉽다. Programming에서는

dsaint31.tistory.com


string formatting

2024.09.04 - [Python] - [Py] Python에서 string formatting.

 

[Py] Python에서 string formatting.

Python에서 문자열에서 변수의 값을 출력하는 방법(string formatting)에는다음과 같은 세 가지 주요 방법이 있음:% 포맷팅 (%-formatting):공식 명칭: Percent formatting도입 버전: Python 초기 버전부터 사용 가

ds31x.tistory.com

f-string

https://dsaint31.tistory.com/532

 

[Python] f-String

Python : f-String Python 3.6 이후 도입됨. 기존의 중괄호 {}과 format 메소드와 유사하지만, 더 직관적으로 문자열을 포맷팅할 수 있는 기능으로 현재는 다른 방법들보다 권장됨 이를 formatted string literals

dsaint31.tistory.com

 


String의 기본 methods

https://dsaint31.tistory.com/533

 

[Python] Basic Methods of String

프로그래밍에서 가장 많이 다루는 데이터는 text라고 할 수 있다. numerical data 이상으로 text data를 다루는 경우가 많은 이유 중 하나는 raw data에서 str(string)이 가장 애용되는 데이터이기 때문이기도

dsaint31.tistory.com

String 관련 overloaded operators

https://dsaint31.tistory.com/547

 

[Python] Str : Overloaded Operators

Concatenation + opeartor combines its two operands. 다음과 같이, 두 문자열이 붙은 새로운 문자열을 반환한다. >>> a = 'test1' + 'test2' >>> a 'test1test1' + opeartor does not add any space between two operand strings to concate, contra

dsaint31.tistory.com


Regular Expression (정규표현식)

2023.07.03 - [Python] - [Python] Regular Expression : 표현식 요약: 정규표현식 문법을 간단히 다룸.

 

[Python] Regular Expression : 표현식 요약

Regular Expression (re) 의 기본적인 operator는 다음과 같음. Basic operator Description . Any character except `\n` (newline) a The character a itself ab The string ab itself x|y x or y \y Escapes a special character y, such as ^+{}$()[]|\-?.* ba

ds31x.tistory.com

https://dsaint31.tistory.com/548: Python의 re 패키지를 간단히 다룸.

 

[Python] Regular Expression : re 요약

정규표현식(正規表現式, Regular Expression)은 문자열을 처리하는 방법 중의 하나로 특정한 조건의 substring(문자열)을 '검색'하거나 '치환'하는 과정을 특정 문자열의 pattern을 기술하는 expression을 이

dsaint31.tistory.com

 

728x90

'Pages' 카테고리의 다른 글

[Python] Control Structure and Control Flow  (1) 2023.10.06
[Python] function 과 Scope, Name Space 정리  (0) 2023.10.06
[Python] Collections  (0) 2023.10.06
Shell 관련 정리  (0) 2023.10.02