美文网首页
Python 20 Programming Tutorial

Python 20 Programming Tutorial

作者: 豆表示低调 | 来源:发表于2016-08-31 11:40 被阅读0次
    
    classmates = {'Tony': 'cool but smells', 'Emma': 'sits behind me', 'Lucy': 'asks too many questions'}
    weights = {'Tony': 150, 'Emma': 87, 'Lucy': 385}
    
    
    print(classmates)
    print(classmates['Emma'])
    
    
    for k, v in weights.items():
        print(k + " weighs " + str(v))
    

    相关文章

      网友评论

          本文标题:Python 20 Programming Tutorial

          本文链接:https://www.haomeiwen.com/subject/rqvfettx.html