or tag

453 questions


1 answers
64 views
0
Python encountered an error saying 'str' object does not support item deletion.

Hello, I am studying PythonI wanted to delete a specific index in the array using del, so I made the following code. 'str' object does not support item deletion.There was no error before writing this ...

2 years ago

1 answers
74 views
0
Python for Moon

a = ['123']b = ['345', '456', '675', '678']for i in b: if i not in a: b.remove(i)print(b)The desired result value of b is [], but why is only the first element deleted?

for
2 years ago

1 answers
101 views
0
I don't know why I get an error.

print=Hello! This is pie coffee that stir-fry fragrant coffee beans. Please choose a language!) language=int (input('1. Korean 2.english 3.')語本')def coffee(c): if language == 1: if c==1: a=1500 el...

2 years ago

1 answers
97 views
0
Please tell me the order in which the results of the generator extinction program example came out

# include <iostream> using namespace std ; class Point { int x, y ; public: Point(int x=0, int y=0) { this->x = x ; this->y = y ; cout << \tPoint ; print() ; cout << con...

2 years ago

1 answers
132 views
0
Python Excel row Repeat

Hello. I'd like to list the number of ranges in ExcelFor example, if 1.5 is entered, you want to implement it in a format that increases by 0.5 from -1.5 to 1.5. But I don't know what to do with the r...

2 years ago

1 answers
107 views
0
There's a problem with the repeat statement

import randomlst = list()for i in range (0,10,1) : lst.append(random.randint(0,100))print(lst)maxidx = 0for i in range(0,10,1): if lst[maxidx]<lst[i] : maxidx=itmp =lst[maxidx]lst[maxidx] = lst[9]...

2 years ago

1 answers
79 views
0
Java error: class found on application class path

The error error: class found on application class path occurs when running Java.What's the problem?

2 years ago

1 answers
104 views
0
Can I change the color of half of Android textview?

If it's 10:15 as implemented in Everytime, I'd like to change it to only 1/4 color, which is 15 minutes, so how can I implement it?It is being implemented through textview.

2 years ago

1 answers
133 views
0
I found something strange in the factory calculation, so I'm asking you a question!

1.#include <stdio.h>int main(void){ int a,i; scanf(%d,&a); for(i=1; i<a; i++) { a = a*i; } printf(%d,a); return 0;}2.#include <stdio.h>int main(void){ int a,i; scanf(%d,&a); fo...

2 years ago

1 answers
71 views
0
Python postfix Calculator Questions

I made a postfix calculator with Python, and the result came out weirdThe first line is a formula The second line is the output of the infix converted into a postfixIn the last line, the result value ...

« - 18 - »

© 2024 OneMinuteCode. All rights reserved.