티스토리 뷰

/**
 *     Version :: Python 2.x , Python 3.x
 *     Desc :: python string to int, float, long
 **/


Python 2.x , 3.x

# string to int
s = "123"
n = int(s)


# string to float
s = "123.456"
n = float(s)


# string to long
s = "1234567890123"
n = long(s)





/**
 *    궁금한 점은 댓글로 남겨주세요.
 *   Please fell free to ask me any questions.
 **/


댓글
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/03   »
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
글 보관함