78 questions
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 ...
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)...
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...
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?
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 ...
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'...
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...
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...
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...
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.