라벨이 Method인 게시물 표시

Using method 'join' for list with integers

Maybe there is a experience that you want to use join method to list consists of just integers. In that case, you can easily resolve this problem as follows. resultlist = [fn(arg) for arg in range(originallist)] resultstring = str.join(resultlist) or just conveniently resultstring = str.join( fn(arg) for arg in range(originallist) )