字符串乘积运算+连接
node = ['160', 'd6', '1']
t5 = '0' * (3 - len(node[-3])) + node[-3]
t4 = node[-2][0] + '0' * (4 - len(node[-2])) + node[-2][1:]
print t5, t4
posted on 2011-08-11 11:41 Cheney Shen 阅读(285) 评论(0) 编辑 收藏 举报
node = ['160', 'd6', '1']
t5 = '0' * (3 - len(node[-3])) + node[-3]
t4 = node[-2][0] + '0' * (4 - len(node[-2])) + node[-2][1:]
print t5, t4
posted on 2011-08-11 11:41 Cheney Shen 阅读(285) 评论(0) 编辑 收藏 举报