python_L3

1.Suggest that testing equality of floats is not exact – Use abs(x-y) < 0.0001, rather than x == y

2. str.swapcase():upper to lower,lower to upper, a copy

posted @ 2015-05-05 20:31  Rayvin  阅读(181)  评论(0编辑  收藏  举报