RT @ChristianHeimes: #python secret: str.startswith() and .endswith() take a tuple of strings, too. >>> "that string".startswith(('this', 'or', 'that')) True
21/09/2017 à 06:07
Permalien
RT @raymondh: #python tip: What Python says: "TypeError: 'method' object is not subscriptable"What it means: "Use parentheses instead of square brackets"
06/09/2016 à 07:33
Permalien
RT @raymondh: #python tip: When your intended variable name is a keyword, PEP 8 recommends affixing an underscore: lambda_ = 0.2
21/11/2015 à 20:59
Permalien