Set to tuple

set to tuple

1 Python[편집]

a = {1, 2, 3}
b = tuple(a)
print( type(a) )
print( type(b) )
print( a )
print( b )
# <class 'set'>
# <class 'tuple'>
# {1, 2, 3}
# (1, 2, 3)

2 같이 보기[편집]

편집자 Jmnote
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}