图解 Python 深拷贝和浅拷贝
var jiathis_config={ data_track_clickback:false, title:"分享从伯乐在线看到的一篇好文章 ", summary:"《图解 Python 深拷贝和浅拷贝》", pic:"http://www.itdaan.com/imgs/4/4/9/7/36/22f575a178ce3574ae24b5a59e4e14ff.jpe", appkey:{ "tsina": 1473879058 }, ralateuid:{ "tsina": 5305630013 }, hideMore:false }
可能感兴趣的话题
<div id="article-comment" class="dot-box center-align">
<a href="http://www.jobbole.com/login?redirect=http://python.jobbole.com/82294/"><button type="button" class="btn btn-non-transparent">登录后评论</button></a>
<a target="_blank" href="http://www.jobbole.com/register"><button type="button" class="btn btn-primary">新用户注册</button></a>
<br><br>
<span>直接登录</span>
<style type="text/css">.t_login_text{margin:0; padding:0;}.t_login_button{margin:0; padding: 5px 0;}.t_login_button a{margin:0; padding-right:3px; line-height:25px}.t_login_button img{display:inline; border:none;}</style><!-- 使用社交帐号登录 来自 WordPress连接微博 插件 --><span class="connectBox1 t_login_button"><a href="http://python.jobbole.com/wp-content/plugins/wp-connect/login.php?go=weixin&redirect_url=http%3A%2F%2Fpython.jobbole.com%2F82294%2F" title="微信" rel="nofollow"><img src="http://python.jobbole.com/wp-content/plugins/wp-connect/images/login/btn_weixin.png"></a><a href="http://python.jobbole.com/wp-content/plugins/wp-connect/login.php?go=qzone&redirect_url=http%3A%2F%2Fpython.jobbole.com%2F82294%2F" title="QQ" rel="nofollow"><img src="http://python.jobbole.com/wp-content/plugins/wp-connect/images/login/btn_qzone.png"></a><a href="http://python.jobbole.com/wp-content/plugins/wp-connect/login.php?go=sina&redirect_url=http%3A%2F%2Fpython.jobbole.com%2F82294%2F" title="新浪微博" rel="nofollow"><img src="http://python.jobbole.com/wp-content/plugins/wp-connect/images/login/btn_sina.png"></a><a href="http://python.jobbole.com/wp-content/plugins/wp-connect/login.php?go=douban&redirect_url=http%3A%2F%2Fpython.jobbole.com%2F82294%2F" title="豆瓣" rel="nofollow"><img src="http://python.jobbole.com/wp-content/plugins/wp-connect/images/login/btn_douban.png"></a><a href="http://python.jobbole.com/wp-content/plugins/wp-connect/login.php?go=github&redirect_url=http%3A%2F%2Fpython.jobbole.com%2F82294%2F" title="GitHub" rel="nofollow"><img src="http://python.jobbole.com/wp-content/plugins/wp-connect/images/login/btn_github.png"></a></span> </div>
<div id="comment_list" class="comments">
<h5 id="comments" class="sub-title"><i class="glyphicon"></i>最新评论</h5>
<ul class="cmnt-list">
<li id="comment-93937" class="comment cmnt odd">
<div class="cmnt-box">
<div class="cmnt-header">
<a href="http://www.jobbole.com/members/3261591503" class="cmnt-img"><img width="37" height="37" src="http://tp1.sinaimg.cn/3261591503/180/0/1" alt=""></a>
<div class="cmnt-meta">
<span><a href="http://www.jobbole.com/members/3261591503">商商潘</a><label class="comment_author_data"> ( <a title="声望值" target="_blank" href="http://www.jobbole.com/members/3261591503/reputation/"><i class="fa fa-graduation-cap"></i> 1</a> · <a title="微博主页" target="_blank" href="http://weibo.com/3261591503"><i class="fa fa-weibo"></i></a> )</label></span>
<span class="c-title">
</span>
<span class="c-date">
<a href="http://python.jobbole.com/82294/#comment-93937">2016/07/17</a>
</span>
</div>
</div>
<div class="cmnt-body">
<p>
</p><p>如果元祖变量只包含原子类型对象,则不能深拷贝.</p>
这句纠正一下,不是说法不对,而是在文中放错位置了。
这样的情况下,浅拷贝和深拷贝结果一致,本身就符合浅拷贝和深拷贝的逻辑啊。
<p></p>
</div>
<div class="cmnt-footer">
<p class="c-like">
<a title="赞同" alt="赞同" class="93937voteflag t-up href-style vote-comment-up register-user-only " data-comment-id="93937"><i class="fa fa-thumbs-o-up"></i> <span id="93937voteuptotal"> 赞</span></a>
<a rel="nofollow" class="comment-reply-link register-user-only" href="http://python.jobbole.com/82294/?replytocom=93937#respond" data-onclick="return addComment.moveForm( "comment-93937", "93937", "respond", "82294" )" aria-label="回复给商商潘">回复 <i class="fa fa-reply"></i></a>
</p>
</div>
</div>
</li>
<div class="cmnt-box">
<div class="cmnt-header">
<a href="http://www.jobbole.com/members/q2356814955" class="cmnt-img"><img width="37" height="37" src="http://q.qlogo.cn/qqapp/208656/C215F0A88DBC427D3764FF6B9480C581/100" alt=""></a>
<div class="cmnt-meta">
<span><a href="http://www.jobbole.com/members/q2356814955">watcher</a><label class="comment_author_data"> </label></span>
<span class="c-title">
</span>
<span class="c-date">
<a href="http://python.jobbole.com/82294/#comment-94428">2017/03/31</a>
</span>
</div>
</div>
<div class="cmnt-body">
<p>
</p><p>深拷贝和浅拷贝中是不是['python','c#', 'javascrip']还掉了一层地址吧,不然这样说不通啊</p>
<p></p>
</div>
<div class="cmnt-footer">
<p class="c-like">
<a title="赞同" alt="赞同" class="94428voteflag t-up href-style vote-comment-up register-user-only " data-comment-id="94428"><i class="fa fa-thumbs-o-up"></i> <span id="94428voteuptotal"> 赞</span></a>
<a rel="nofollow" class="comment-reply-link register-user-only" href="http://python.jobbole.com/82294/?replytocom=94428#respond" data-onclick="return addComment.moveForm( "comment-94428", "94428", "respond", "82294" )" aria-label="回复给watcher">回复 <i class="fa fa-reply"></i></a>
</p>
</div>
</div>
</li>
</div>