Questions et réponses pour le function :

A function (also called a procedure, method, subroutine, or routine) is a portion of code intended to carry out a single, specific task. Use this tag for questions which specifically involve creating or calling functions. For help implementing a function to perform a task, use [algorithm] or a task-specific tag instead.

1
votes
Veuillez consulter le code complet ci-dessous. J'ai un tableau initial nommé arr . J'utilise une liste liée pour stocker certains index via la fonction appen ...

1
votes
Quelqu'un peut-il m'expliquer la différence entre quand utiliser une fonction en introduisant vos variables entre parenthèses, et quand placer la fonction après la variable av ...

1
votes
def func1(): if my_api_success(): return my_api_value else return None x= 1 if func1() is None else func1() I want to capture the return value of func1(). Is it possible ...

1
votes
J'ai lu les autres questions portant le même titre mais aucune n'a aidé avec mon problème et rien en ligne n'a aidé non plus. Je suis nouveau sur Java et j'essaie de ...