en
Dan Bader

Python Tricks: The Book

Benachrichtigen, wenn das Buch hinzugefügt wird
Um dieses Buch zu lesen laden Sie eine EPUB- oder FB2-Datei zu Bookmate hoch. Wie lade ich ein Buch hoch?
  • Никитаhat Zitat gemachtvor 5 Jahren
    I want to make it clear that calling the parameters args and kwargs is simply a naming convention. The previous example would work just as well if you called them *parms and **argv. The actual syntax is just the asterisk (*) or double asterisk (**), respectively.
  • Никитаhat Zitat gemachtvor 5 Jahren
    Besides its use as a temporary variable, “_” is a special variable in most Python REPLs that represents the result of the last expression evaluated by the interpreter.
  • Никитаhat Zitat gemachtvor 5 Jahren
    “double underscore” to “dunder.”
  • Никитаhat Zitat gemachtvor 5 Jahren
    single trailing underscore (postfix) is used by convention to avoid naming conflicts with Python keywords. This convention is defined and explained in PEP 8.
  • Никитаhat Zitat gemachtvor 5 Jahren
    Single underscores are a Python naming convention that indicates a name is meant for internal use. It is generally not enforced by the Python interpreter and is only meant as a hint to the programmer.
  • Никитаhat Zitat gemachtvor 5 Jahren
    single underscore prefix has a meaning by convention only.
  • Никитаhat Zitat gemachtvor 5 Jahren
    In Python, you can place a comma after every item in a list, dict, or set constant, including the last item
  • Никитаhat Zitat gemachtvor 5 Jahren
    Don’t Use Asserts for Data Validation
fb2epub
Ziehen Sie Ihre Dateien herüber (nicht mehr als fünf auf einmal)