From e8e433891d8234ff95ecc11040afa078167ef256 Mon Sep 17 00:00:00 2001 From: fancy Date: Mon, 11 Mar 2019 11:49:11 +0800 Subject: [PATCH] no message --- 02-array-seq/listcomp_speed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/02-array-seq/listcomp_speed.py b/02-array-seq/listcomp_speed.py index 0ec8b58..a9ab499 100644 --- a/02-array-seq/listcomp_speed.py +++ b/02-array-seq/listcomp_speed.py @@ -10,7 +10,7 @@ def non_ascii(c): def clock(label, cmd): res = timeit.repeat(cmd, setup=SETUP, number=TIMES) - print(label, *('{:.3f}'.format(x) for x in res)) + print(label, ('{:.3f}'.format(x) for x in res)) clock('listcomp :', '[ord(s) for s in symbols if ord(s) > 127]') clock('listcomp + func :', '[ord(s) for s in symbols if non_ascii(ord(s))]')