Check alle échte Black Friday-deals Ook zo moe van nepaanbiedingen? Wij laten alleen échte deals zien

python functies opzoeken

Pagina: 1
Acties:
  • 219 views

  • verbatim
  • Registratie: November 2010
  • Laatst online: 17-01-2024
Hallo,

Ik heb een utilityscript waarbij met run een foutmelding komt.
Nu wil ik gaan opzoeken wat die funties precies betekenen.
het gaat om:

import string
def more
while lines
chunk
for line
if lines
if
import sys

Ik heb hiervoor gekeken in module docs. Maar wat is de beste manier om over deze functies te weten te komen.

Thanks

  • DXaroth
  • Registratie: Maart 2011
  • Laatst online: 24-08 19:58
Een paar regels kan men niet veel, maar ik doe een gok.

import <iets> : http://docs.python.org/2/tutorial/modules.html
def <iets>(<eventueel iets>) : http://docs.python.org/2/tutorial/ ( Defining functions )
for <iets> : http://docs.python.org/2/tutorial/ ( For statement )
if <iets> : http://docs.python.org/2/tutorial/ ( Defining functions )

...kort gezegd, je wilt http://docs.python.org/2/tutorial/ lezen :)

  • NMe
  • Registratie: Februari 2004
  • Laatst online: 20-11 11:59

NMe

Quia Ego Sic Dico.

^^ dat. We verwachten hier op GoT toch echt dat je op zijn minst de beginnerstutorials zelf kan vinden...

'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.


Dit topic is gesloten.