- 博客(2)
- 收藏
- 关注
原创 Python 2&3, zip type
Python 2&3, zip typeTry the following in ipython3:zip(range(3), ‘abc’)output: <zip at 0x110919488>zip(range(3), ‘abc’)[0]: type errorln [7]: list(zip(range(3), ‘abc’))Out[7]: [(0, ‘a’)...
2019-10-19 08:29:11 219
原创 Python number and string formatting
In [38]: a=0In [39]: ‘{:06.01f}’.format(a)The formatting is given in the curly brace contained in a string. 0:06.01f means that this placeholder corresponds to the 0th parameter in “format”. The num...
2019-02-16 08:58:24 123
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人