Skip to content

Instantly share code, notes, and snippets.

@yunho0130
Created December 11, 2016 03:01
Show Gist options
  • Select an option

  • Save yunho0130/3708d4b30dfcca79f18513437a766430 to your computer and use it in GitHub Desktop.

Select an option

Save yunho0130/3708d4b30dfcca79f18513437a766430 to your computer and use it in GitHub Desktop.
# coding=utf-8
# 변수의 타입을 바꿔보자
str = "오늘은 2016년 12월 11일이다."
print str
print str[10:14]
a = str[10:14]
print a+a
b = int(a)
print b+b
print type(str) # 긴거
print type(a) # 잘라낸 것
print type(b) # 숫자로 바꾼 것.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment