Computer >> 컴퓨터 >  >> 프로그램 작성 >> Python

파이썬의 string.whitespace

<시간/>

이 튜토리얼에서는 string.whitespace에 대해 알아볼 것입니다. .

문자열 공백 문자열에 미리 정의되어 있습니다. Python3 모듈 . 공백, 탭, 줄 바꿈, 반환, 양식 피드가 포함된 경우 및 세로 탭 .

예시

# importing the string module
import string
# printing a string
print("Hello")
# whitespace printing
print(string.whitespace)
# printing a string
print('tutorialspoint')

출력

위의 코드를 실행하면 다음과 같은 결과를 얻을 수 있습니다.

Hello

tutorialspoint

결론

튜토리얼에서 의문점이 있으면 댓글 섹션에 언급하세요.