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 같이 보기[ | ]

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