首页 > 编程语言 > 详细

[python] python 中的" "和' '都是完全转义

时间:2016-11-13 21:52:29      阅读:213      评论:0      收藏:0      [点我收藏+]
dict = {"a" : "apple", "b" : "banana", "g" : "grape", "o" : "orange"}

for k in dict:
    print ("dict[$k] =",dict[k])

dict[$k] = grape
dict[$k] = banana
dict[$k] = apple
dict[$k] = orange

 

dict = {"a" : "apple", "b" : "banana", "g" : "grape", "o" : "orange"}

for k in dict:
    print ("dict[%s] =" %k,dict[k])

dict[o] = orange
dict[a] = apple
dict[b] = banana
dict[g] = grape

[python] python 中的" "和' '都是完全转义

原文:http://www.cnblogs.com/danjawwi/p/6059738.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!