본문 바로가기

기계는 거짓말하지 않는다

검색하기
기계는 거짓말하지 않는다
프로필사진 KillinTime

  • 분류 전체보기 (330)
    • C (15)
    • C++ (4)
    • C# (13)
    • Java (1)
    • Git (6)
    • Python (107)
    • Web (12)
      • Spring Boot (6)
      • JS (4)
      • HTML (0)
    • AI (35)
    • Linux (66)
    • Container Tools (10)
      • Docker (9)
      • Kubernetes (1)
    • DB (12)
      • MySQL (12)
    • IDE (14)
      • STS (1)
      • Visual Studio (6)
      • VS Code (7)
    • SDK (1)
      • NVIDIA DeepStream (1)
    • Development Related (2)
    • Program (5)
    • Programming Test (13)
    • Tech Tips (2)
    • Others (12)
      • 잡담 (3)
      • Guitar (9)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/08   »
일 월 화 수 목 금 토
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
31
Tags
  • Visual Studio
  • VS Code
  • Numpy
  • mysql
  • nvidia-smi
  • OpenCV
  • error
  • 프로그래머스
  • label
  • C++
  • Python
  • Docker
  • ubuntu
  • 채보
  • pip
  • C#
  • windows forms
  • YOLO
  • C
  • 오류
  • 기타 연주
  • SSH
  • 핑거스타일
  • paramiko
  • pytorch
  • pandas
  • Selenium
  • JSON
  • Linux
  • 컨테이너
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록string (1)

기계는 거짓말하지 않는다

Python String 문자 수정(Modify)

문자열은 immutable이므로 문자 수정이 불가능하다. List 변경 후 다시 문자열로 변환하는 방법이 있다. temp_str = "ABCDEF" temp_str = list(temp_str) temp_str[0] = "g" temp_str[1] = "h" temp_str = "".join(temp_str) print(f"Change String: {temp_str} (Type: {type(temp_str)})")

Python 2022. 11. 25. 14:07
Prev 1 Next

티스토리툴바