본문 바로가기 메뉴 바로가기

sunny-blog

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

sunny-blog

검색하기 폼
  • 분류 전체보기 (33)
    • 개발 (31)
      • c (0)
      • c++ (1)
      • python (10)
      • go (0)
      • 웹 (8)
    • 보안 (2)
      • 정보보안기사 (1)
      • 보안 프로젝트 (1)
    • 블록체인 (0)
    • 5G (0)
  • 방명록

while (1)
[2020.07.15] python 입출력, 제어문,반복문

input() : console에서 입력받음 print() : console로 출력 my_input = input("입력값을 넣으세요 : ") print(type(my_input), end=" ") # end= , 줄바꿈 대신 출력 print(my_input) #기본적으로 print() 함수는 한줄을 출력한 후 line feed(줄바꿈)를 수행 #줄바꿈 대신 다른 문자를 출력하려면 'end=' 속성을 이용 Control Statement(제어문) 1. if문 a = 15 if a % 3 == 0: #print("3의 배수입니다.") pass # 아무것도 안하고 넘어감, 빈 칸으로 둘 경우 에러남 elif a % 5 == 0: print("5의 배수입니다.") else: print("3의 배수도 아니고 5..

개발/python 2020. 7. 15. 17:29
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • Module
  • while
  • 정보은닉
  • framework
  • namespace
  • python #데이터타입 #data_type
  • information hiding
  • 객체지향
  • list comprehension
  • DateUtil
  • jQuery method
  • OOP
  • magic function
  • spring
  • bootstrap 변경
  • 입출력
  • jQuery예제
  • setter
  • relativedelta
  • Lambda Expression
  • variable
  • constructor
  • package
  • 동적함수
  • lambda
  • html
  • python #dataType #ControlStatement #function #lambda
  • timedelta
  • first class
  • python
more
«   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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바