I'm going to attach the entire list element as a string to distinguish each element
['a','b'] -> "a,b"
I'm going to add a comma like this.
Usually, I
''.join(map(lambda x: x+',',l))[:-1]
I wrote it like this, but I wonder if there is any other way.
android-listview python
Even if you don't use Lambda
myList = ['a','b','c','d']
myString = ",".join(myList)
You can write. If the list stores numbers, there will be an error, so please add a code that converts the type separately
myList = ','.join(map(str, myList))
538 Uncaught (inpromise) Error on Electron: An object could not be cloned
548 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
547 Who developed the "avformat-59.dll" that comes with FFmpeg?
549 PHP ssh2_scp_send fails to send files as intended
712 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2024 OneMinuteCode. All rights reserved.