python-snippets icon indicating copy to clipboard operation
python-snippets copied to clipboard

A basket of python snippets

Results 3 python-snippets issues
Sort by recently updated
recently updated
newest added

other way ``` x = {'a':1, 'b': 2} y = {'b':10, 'c': 11} z = dict(x, **y) ```

`d = {key: value for (key, value) in sequence}` 不如直接 `d = dict(sequence)`

`urllib2`是一种古老的产物,现在可以看成一种“邪恶的化身”,我觉得最好使用`urllib3`,或者`requests`作为例子,减少误导新手的可能,节约pythoner的时间。