본문 바로가기

IT 세계의 후아

검색하기
IT 세계의 후아
프로필사진 후__아

  • 전체 (55)
    • Coding (43)
      • Python (27)
      • Study (15)
      • Algorithm (1)
    • Recording (12)
      • NewsScrap (10)
      • 취준기록 (0)
      • Etc (2)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
Tags
  • 백준
  • AI
  • 생성형AI
  • listcomprehension
  • 경제신문스크랩
  • 랭체인
  • llm
  • rag
  • langchain
  • 이중리스트
  • chr
  • dict
  • 데이콘경진대회
  • Python
  • 문자열
  • 파이썬
  • OpenAI
  • 리스트
  • Ord
  • 프로그래머스
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록아스키코드 (1)

IT 세계의 후아

[python]아스키코드

※ 내장함수 기억하기!ord(문자) = 아스키코드chr(아스키코드) = 문자print(ord("A")) # 65print(ord("a")) # 97print(ord("z")) # 122print(ord("0")) # 48print(ord("9")) # 57print(chr(65)) # Aprint(chr(48)) # 0# 프로그래머스 lv0 문자 개수 세기# "Programmers" A~z까지 countdef solution(s): li = [0]*52 for i in s: if ord(i)  ※ string.ascii_uppercase대소문자 리스트 생성['A', 'B', ..., 'Z']    # ascii_uppercase['a', 'b', ..., 'z']   ..

Coding/Python 2024. 1. 29. 11:23
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바