摘要: class Solution(object): def longestValidParentheses(self, s): """ :type s: str :rtype: int """ maxlen=0 s... 阅读全文
posted @ 2015-12-15 23:34 hao.ma 阅读(124) 评论(0) 推荐(0)
摘要: rs=dict()rs['item1'] = 'item1'rs['item2'] = 'item2'for k,d in rs.items(): print k,dfor k in rs.keys(): print k,rs[k] 阅读全文
posted @ 2015-12-15 12:34 hao.ma 阅读(163) 评论(0) 推荐(0)