Movatterモバイル変換
[0]ホーム
list vs tuple
Rikard Bosnjakovicbos at hack.org
Sun Apr 1 06:44:06 EDT 2001
deadmeat wrote:> > a is still [1, 2, 3]. What's the problem?> b = a still didn't duplicate aIt never would, unless you _TELL_ Python to duplicate a. That is, "b =a[:]".> as would have been expectedThat's why you should read the manual and first line on Fredrik's page:Reset your brain.-- Rikard Bosnjakovic -http://a214.ryd.student.liu.se/cv/ - ICQ: 1158217Anyone sending unwanted advertising e-mail to my address will becharged $250 for network traffic and computing time. By extracting myaddress from this message or its header, you agree to these terms.
More information about the Python-listmailing list
[8]ページ先頭