function tag

78 questions


2 answers
133 views
0
[javascript] Is the object a function?

Hi, everyone. var color = 'red';function foo() { var color = 'blue'; // 2 function bar() { console.log(color); // 1 } return bar;}When you want to get the color variable of the foo function from the ...

2 years ago

1 answers
69 views
0
To run python functions simultaneously (parallel)

I made selenium crawl using Python and am using it.As a result, the implementation structure is def function_name(url): Function Contents It looks like above. url = 'www.siteurl.com'function_name(url)...


1 answers
52 views
0
How do you implement circular movement in language c?

I'm trying to make a game like Gallagher in C language, and the rest of the elements are all implemented, but they're blocked at the stage of implementing the movement of the enemy. It'd be nice if it...

2 years ago

1 answers
104 views
0
To add a custom function to SQLite

I'm developing an Android app. I want to add a function to SQLite, is it possible to add a new function to SQLite? What should I do if possible?


1 answers
112 views
0
Is it possible to flip the dictionary like a keyword factor?

Is it possible to flip the dictionary like a keyword factor?d = dict(param='test')def f(param): print paramf(d)Output: {'param': 'test'} Now my code is running like this, but I just want to make test ...


2 answers
122 views
0
Use format function for Python class

I'm going to pre-define the function in the class and import it at any time to use it.The desired output value is m1: How is your relationship going? g1 ah?def romance(self, listener): print({}): How'...

2 years ago

2 answers
129 views
0
JavaScript Asynchronous Function Question

Currently, I am having a hard time coding the web with JavaScript.I'm using a function, and that function receives an external api.For example, code func a(id){ return API(id); }Let's say this.At this...


1 answers
62 views
0
Change function parameter double array element

int main(void){ int a[2]; double b[2]; printf (first person's age, height: \n); scanf(%d%lf, &a[0], &b[0]); printf (Second person's age, height: \n); scanf(%d%lf, &a[1], &b[1]); swap(i...

2 years ago

3 answers
130 views
0
In the Go language function parameter transfer

type Brand struct { Idx string `json:idx` Code int `json:code` Name string `json:name`}brands := make([]*Brand, 0)r.DB.Raw(query).Scan(&brands)DB data is added to the brands variable with the abov...

2 years ago

1 answers
161 views
0
SyntaxError: invalid syntax when called after function definition

I did this, but I keep getting errors def get_generation(x): return str ((x//10)*10) + 'large'age = int(input(x))print(get_generation(age) + I see)If I type 28, I want to get 20s like this..What shoul...

« - 5 - »

© 2024 OneMinuteCode. All rights reserved.