function tag

78 questions


1 answers
306 views
0
Time stops when the Python timer button is pressed

I'd like to make a timer for school special activities.I made the time count and the buttonsI don't know how to stop time when the button is pressed.I'm applying what I've learned, so I'd like to add ...

1 years ago

1 answers
163 views
0
Python undefined name 'Function name' error

//import randomprint (Name Generation)Main character = input()print The name of the main character f{Heroine})while 1: power = random.randrange(3, 9) health = random.randrange(5, 9) mana = random.rand...

2 years ago

1 answers
175 views
0
To find out if a variable is a function or not?

How do I find out if the variable x is a function or just a general variable?When x is pointing to a function,type(x) = <type 'function'> I want to winisinstance(x, function)I wrote it like this...

2 years ago

1 answers
193 views
0
I would like to ask you about the Cstatic function

I have a question about the static function, not the c++ static method.I know the static variable, but what is the static function?Also, if you define void myfunc() in another c file and include this ...

2 years ago

1 answers
148 views
0
Why is this code parentheses on both sides of the function name?

I found this C function in the project source fileint (foo) (int *bar){ return foo (bar);}At first, I thought it was a function point, but it wasn't eitherWhy is it covered in parentheses?

2 years ago

1 answers
147 views
0
Function declarations and function representations

I recently started maintaining someone else's JavaScript code. You want to fix bugs and add features to fix code more consistently. Previous developers defined code as a function in two ways. I was wo...

2 years ago

1 answers
147 views
0
Django function declaration question.

In the Django tutorial, functions in the views file receive requests without receiving self as the first parameter.I know that the Python function must receive self as the first parameterI wonder what...

2 years ago

1 answers
123 views
0
c++ Memory Location and Operation of Class Member Functions

Where and how is the C++ member function located?First of all, my personal guess is thatEven if you create multiple class objects, the class's member variables are likely to set multiple areas and hav...


1 answers
107 views
0
What does it mean if an argument has a colon when defining a function?

I'm playing with checkiO and the function presented is It also says def data (password: str): It also says def data (password: str) -> str:I'm just a beginner at Python, so I only know that you spe...


2 answers
176 views
0
[javascript] arrow function question

Hello, I am studying arrow function and I have a question. const inventors = [ { { first: 'Albert', last: 'Einstein', year: 1879, passed: 1955 }, { { first: 'Isaac', last: 'Newton', year: 1643, passe...

- 1 - »

© 2024 OneMinuteCode. All rights reserved.