int tag

57 questions


1 answers
124 views
0
Why is there no rounding function (rounding x)?

There is a round() function, but why is there no ceil() function? ㅜ??round(2.3)If you do this, you get 2.0, but I want to get 3. int(number + 0.5)I've tried it, but I'm going crazy because it's also l...


1 answers
92 views
0
Questions about the code from Python 1 to N

Hello, I'm a newbie learning PythonI was studying by myself while buying a Python book, but I kept getting an error, so I'm going to askAs the title says, add 1 to N, but I copied it exactly the same ...

1 years ago

1 answers
105 views
0
How to output XML in a good way?

How can I print out the xml beautifully?There is an xml file like this<foo> <bar> <type foobar=1/> <type foobar=2/> </bar></foo>When running Python code import xml....

1 years ago

1 answers
44 views
0
Why is inti = 1024 * 1024 * 1024; compiled without errors?

The expression range of int is from -2147483648 to 2147483647.So inti = 2147483648; and then in Eclipse, you get a red underline for 2147483648.inti = 1024 * 1024 * 1024 * 1024; this compiles well.pub...

1 years ago

1 answers
99 views
0
How do I print out % of special characters instead of "\" when printing?

printf(hello\%); //not like thisIf I use a backslash, it's too hard to see when there are too many special characters, so I want to know another way.I get the same result as that code, but is there a ...

1 years ago

1 answers
87 views
0
Difference between float and double

I read about the difference between float and doubleMost of the time, they seem to produce the same resultsBut when I solve the problem of floating point calculation,When I use my computer, I use 10 c...


1 answers
143 views
0
Output speed difference after the for statement result immediately vs for statement result list append (SW Expert question 3750)

Hi, how are you?There was a problem I didn't know while solving SW Expert Academy question 3750 I couldn't find a solution even if I googled, so I asked this question.The problem is that the unauthori...

1 years ago

1 answers
107 views
0
I can't write sideways on Python cmd

It works well if you run it on the jupyter like that, but if you make .exe with the same code, the print('@', end=') doesn't work I don't get an error and I'm just not doing anything. Why is this happ...

1 years ago

1 answers
124 views
0
Can I convert a structure string to an integer?

int main(){ void pid_sort(struct id[], int); void pid_print(struct id[], int); struct student stu[3]; int count; int i; printf (Enter 3 student information); for (i = 0; i < 3; i++) { printf (Name...

2 years ago

1 answers
74 views
0
I want to search all the subfolder files and make them into files, but the print and append values are different.

I'm going to create a project where I search all the subfolder files and make them into filesThe value comes out well if you print it, but when I added it to the list by append and returned the list, ...

2 years ago
« - 5 - »

© 2024 OneMinuteCode. All rights reserved.