Movatterモバイル変換
[0]ホーム
string copy of a list
Brian Quinlanbrian at sweetapp.com
Sun Apr 15 18:02:21 EDT 2001
I have no idea what you are asking for. So here is some random code:>>> a = ['Hello', 'How', 'Are', 'You?']>>> ''.join(a)'HelloHowAreYou?'>>> ','.join(a)'Hello,How,Are,You?'>>> ' '.join(a)'Hello How Are You?'>>> a[0]'Hello'>>> a[1]'How'-----Original Message-----From:python-list-admin at python.org[mailto:python-list-admin at python.org]On Behalf Of Jim RichardsonSent: Sunday, April 15, 2001 3:01 PMTo:python-list at python.orgSubject: string copy of a listI am stumped, str(listname) returns a string of list, but includes thecommasand [] that the list would show if printed. I want a string copy of a list,isthere a simple way I have missed? please? thanks--Jim RichardsonAnarchist, pagan and proud of itWWW.eskimo.com/~warlockLinux, because life's too short for a buggy OS.--http://mail.python.org/mailman/listinfo/python-list
More information about the Python-listmailing list
[8]ページ先頭