Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.018 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'json': 0.07; 'subject:string': 0.09; 'skip:[ 20': 0.12; 'received:209.85.210.174': 0.13; 'received:mail- iy0-f174.google.com': 0.13; 'from:addr:alec.taylor6': 0.16; 'from:name:alec taylor': 0.16; 'cc:addr:python-list': 0.16; 'convert': 0.19; 'cc:no real name:2**0': 0.20; 'subject:list': 0.21; 'header:In-Reply-To:1': 0.22; 'string': 0.24; 'cc:2**0': 0.24; 'thanks.': 0.26; 'import': 0.27; 'url:mailman': 0.28; 'message-id:@mail.gmail.com': 0.28; 'cc:addr:python.org': 0.29; 'list': 0.32; 'url:listinfo': 0.32; 'subject:How': 0.35; 'url:python': 0.36; 'received:google.com': 0.37; 'received:209.85': 0.38; 'url:org': 0.39; 'received:209': 0.40; '8bit%:100': 0.69; 'charset:gb2312': 0.78; ',and': 0.84; 'skip:\xc7 30': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=fdhRPPpKZFy3UVvpmhi/npfmsbRjGDcF6gcNCgTlHRU=; b=IQnWxQHiDFa6nVkAzBFLCvUGTA5bgoB8Xbl/r/OTQKQ3aJF/c2QW8BBFqG1Q9J5eIr MA5mevAUtdHE1zzpiEqOCb3bYf/jN8AFi6F0SpvO8DV2WW2GW6NBP3usjTZMjGfG/cil isMoN6uX/YrZRESYnBP/S2QjQgcEoQHhTQTGM= MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 30 Nov 2011 17:24:59 +1100 Subject: Re: How convert a list string to a real list From: Alec Taylor To: =?GB2312?B?ufm+/Mio?= Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1322634302 news.xs4all.nl 6893 [2001:888:2000:d::a6]:37280 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:16419 import json s =3D json.dumps([1, 2, 3, 4]) # '[1, 2, 3, 4]' l =3D json.loads(s) # [1, 2, 3, 4] 2011/11/30 =B9=F9=BE=FC=C8=A8 : > Good after > I have a string liststr =3D '["aaaa","bbbb","ccc"]' ,and I need conv= ert > it to a list like list =3D ["aaaa","bbbb","ccc"],what can id do? > Thanks. > > > -- > =B9=F9=BE=FC=C8=A8 > =C7=E5=BB=AA=B4=F3=D1=A7=CD=F8=C2=E7=D6=D0=D0=C4=CD=F8=C2=E7=B0=B2=C8=AB= =CA=B5=D1=E9=CA=D2 > guojunquan{at}gmail.com > > > -- > http://mail.python.org/mailman/listinfo/python-list >