Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency

Do you need help?

Documentazione python

s
scutigliani.luca (860 points)
10 10 15
in Info sul corso e sugli esami by (860 points)
Potrebbe sembrare una domanda banale, ma è possibile tenere la documentazione python durante l'esame?

Per quanto riguarda eventuali fogli su cui scrivere, dobbiamo portane noi oppure vengono forniti in loco?

Grazie
508 views
closed

2 Answers

Best answer
andrea.sterbini (207940 points)
756 1270 2377
by (208k points)
selected by

Per la documentazione delle librerie Python non sono sicuro che l'help on-line di Spyder 3 funzionerà dato che la rete esterna sarà sconnessa per ovvi motivi.

Però da terminale (Anaconda Prompt) potete accedere alla stessa documentazione con il comando pydoc. Ad esempio se volete sapere come chiamare la funzione listdir del modulo os potete scrivere pydoc os.listdir ed ottenere

Help on built-in function listdir in os:

os.listdir = listdir(path=None)
    Return a list containing the names of the files in the directory.
    
    path can be specified as either str, bytes, or a path-like object.  If path is bytes,
      the filenames returned will also be bytes; in all other circumstances
      the filenames returned will be str.
    If path is None, uses the path='.'.
    On some platforms, path may also be specified as an open file descriptor;\
      the file descriptor must refer to a directory.
      If this functionality is unavailable, using it raises NotImplementedError.
    
    The list is in arbitrary order.  It does not include the special
    entries '.' and '..' even if they are present in the directory.

AndreaGasparini (18850 points)
7 12 120
by (18.9k points)
edited by
Si può utilizzare l'help di Spyder - con relativa documentazione - e per quanto riguarda i fogli credo convenga portarne di propri se pensi ti siano necessari.