반응형
반응형

밤하늘에 빛나는 별

반응형

'아침편지' 카테고리의 다른 글

울엄마의 젖가슴  (0) 2023.06.13
무화과 속의 '작은 꽃들'  (0) 2023.06.12
악순환  (0) 2023.06.09
사람은 세 번 변한다  (0) 2023.06.08
'내가 왜 사는 거지?'  (0) 2023.06.07
반응형

simple-colors 

https://pypi.org/project/simple-colors/

 

simple-colors

Colorful output in terminal

pypi.org

 

#Colored Output in Python
import simple_colors
text = "Welcome to Python"

# Colored text
colored = simple_colors.blue(text)
print('Colored:', colored)

# Colored and Bold text
bold_colored = simple_colors.green(text,'bold')
print('BOLD:', bold_colored)

# Colored, Bold and Underlined text
attributes = ['bold','underlined']
bold_underlined = simple_colors.red(text, attributes)
print('BOLD and Underlined: ', bold_underlined)

Project description

Simple Colors

Colorful output in terminal.

Installation

pip install simple-colors

Usage

from simple_colors import *

print(green('hello'))
print(green('hello', 'bold'))
print(green('hello', ['bold', 'underlined']))

Inlucded colors

  • black
  • red
  • green
  • yellow
  • blue
  • magenta
  • cyan

Included styles:

  • bold
  • bright
  • dim
  • italic
  • underlined
  • blink
  • reverse
반응형
반응형

https://map.naver.com/v5/search/%EC%97%90%EB%B2%84%EB%9E%9C%EB%93%9C%20%ED%9D%A1%EC%97%B0%EA%B5%AC%EC%97%AD

 

네이버 지도

에버랜드 흡연구역

map.naver.com

반응형
반응형

탭   : char(9)

 

select * from 테이블명

where 컬럼명 = char(9)

 

엔터값 : char(10) + char(13)

 

select * from 테이블명

where 컬럼명 = char(10) + char(13)

 

 

Tab char(9)
Line feed char(10)
Carriage return char(13)

 

select 'a'+char(9)+'b'

select 'a'+char(13)+'b'

select 'a'+char(10)+'b'

 

엑셀출력 등을 하거나 화면에서 공백을 제거해야할 경우 공백이랑 엔터 같이 제껴야 한다.

탭까지 제낄 필요있으면 char(9) 추가

 

REPLACE( REPLACE(column,char(13),'' ), char(10), '')

반응형
반응형

asp 에서 개행문자 줄바꿈 문자 공백문자 - vbCrLf , chr(10), chr(13), chr(32)

 

 

asp 에서 줄바꿈 변수는 vbCrLf 라는 것이 있는데, 이는 아래 둘을 포함한다.

 

- chr(13) : 맨 앞으로 (\r)

- chr(10) : 줄바꿈 (\n)

 

 

줄바꿈을 <br /> 로 변경 

 

- replace(textarea_content, chr(13), "<br />")

 

 

공백을 &nbsp; 로 변경

 

- replace(textarea_content, chr(32), "&nbsp;")

 

 

따라서,

textarea에서 줄바꿈 및 공백을 입력한 부분을 아래와 같이 Replace하여 보여 주면 입력된 내용과 동일하게 보여줄 수 있다.

 

textarea_content   =   Replace(replace(textarea_content, chr(13), "<br />"), Chr(32), "&nbsp;")

반응형
반응형

https://www.youtube.com/watch?v=0nRfyE0L-aY

 

 

신궁이 되는 비결을 찾아 헤매던 궁수가
어느 산에 신궁이 있단 소식을 듣고 찾아갔다.
소문대로 표시된 과녁마다 예외없이 명중되어 있었다.
신궁에게 비결을 물었다.
“먼저 쏘아라.
그런 다음 붓으로 과녁을 그려 넣으면 된다.”
- 최윤식 저, ‘2030 기회의 대이동’에서

우리는 과녁이 고정되어 있지 않고 수시로 변화하는
불확실성의 시대를 살아가고 있습니다.
완벽하게 준비하느라
막상 화살을 쏘아보지도 못하고
타임아웃 될 위험도 높아지고 있습니다.
완벽주의는 때론 해악을 불러옵니다.
일단 지금 시작하는 것이 수많은 준비보다 훨씬 나은 시대입니다.

반응형

+ Recent posts