30 questions
I'm studying Python. In the _init__.py file,__all__ <- I keep looking at itWhat do you use this for?
What does * and ** attached to param2 do in the code below?def foo(param1, *param2):def bar(param1, **param2):
I'm asking you a question because I saw such a strange code.I don't know why ([](){})()); is compiled normally in the source code belowI'm not a function pointer, I'm not an operator.But if you run it...
I saw a code like this#include <iostream>class Foo {public: int bar; Foo(int num): bar(num) {};};int main(void) { std::cout << Foo(42).bar << std::endl; return 0;}What is written her...
Both can be compiled. Can I change the order like int long , long int, and long int?If the top two are the same, is the pointer type the same?
How do I remove all annotations from the Python code?I made a code to find a pair of # or and erase the contents of itOccasionally, a problem occurs when the is used as a string.Isn't there a Python...
int foo(someVar){ return someVar;}int main(int argc, const char * argv[]) { printf(%d\n, foo(3));}SomeVar, the factor of foo(), doesn't have a typeThere are no compilation errors and the program runs ...
if count == N: count = 0else: count = N + 1Is there any way to write this code in one line?In object-C, count = count == N ? 0 : count + 1;We could have shared it, but I don't know exactly what that i...
After you push the computer once and install Python,I just used print, but there's an errorWhat should I do? Should I reformat my computer?>>> print hello World File <stdin>, line 1 pri...
What does :: do in Foo::Bar?I thought it was related to encapsulation (private, protected), but it's not that when I looked at the definition.The :: is a unary operator that allows: constants, instanc...
- 1 - | » |
© 2024 OneMinuteCode. All rights reserved.