코딩공부

  • 홈
  • 태그
  • 방명록

coding 2

[Python] 표준입출력

1. 표준입출력 1) separator print("python", "java", sep = " , ", end ="?") #end: 문장의 끝부분을 ?로 바꿔달라. end는 줄바꿈이 디폴트인데 ?로 바뀜 print("what is more useful?") #출력: python, java 2) import sys print("Python", "java", file = sys.stdout) #표준출력 print("Python", "java", file = sys.stderr) #표준에러 - 따로 로딩해서 에러처리할 때 필요 3) set 출력 ljust( ): 왼쪽 정렬 rjust( ): 오른쪽 정렬 sep: separator scores = {"math" : 0, "english" : 50, "codin..

Self-study/Python 2023.12.27

[Python] 함수(Function)

1. 함수 - def 함수선언: def open_account(): print("New account has been opened.") def deposit(balance, money): print("Deposit is finished. the balance is {0}.".format(balance + money)) return balance + money def withdraw(balance, money): if money

Self-study/Python 2023.12.27
이전
1
다음
더보기
프로필사진

코딩공부

  • 분류 전체보기 (41)
    • Self-study (38)
      • HTML (0)
      • CSS (0)
      • Javascript (12)
      • 자바 (5)
      • Python (11)
      • React (6)
      • C언어 (1)
      • Kotlin (2)
      • 기타 (1)
    • Leetcode (3)
      • alogorithm (0)

Tag

파이썬 기초, 초보개발, 파이썬, 변수, coding, 자바스크립트, 외장함수, leetcode, 자바, 함수, 리트코드, mutability, 지역변수, 자바스크립, 자바의정석, 지수표기법, 코드잇, python, 코딩, 객체지향,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/09   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바