#!/usr/bin/env python #-*- coding:utf-8 -*- import time start = time.time() for i in range(1000000): a = (1, 2, 3, 4) print time.time() - start start = time.time() for i in range(1000000): a = [1, 2, 3, 4] print time.time() - start 如果要迭代一列数据,用tuple比l
BTW wants to buy a gift for her BF and plans to buy an integer array. Generally Integer arrays are costly and hence bought the cheapest one from the market. Her BF is very judgemental and assess the quality of the array by just looking at the smalles