assert tag

5 questions


1 answers
98 views
0
How do I process True only when the object is a list or tuple, and False when the string is false?

If an object is a list/tuple, you want to continue to run the program, and if it is a string, you want to create a script that says assert.assert isinstance(lst, list) or isinstance(lst,tuple)Is there...

1 years ago

1 answers
126 views
0
When do you use the ASSERT?

Hello. I have a question, so I am posting it here. I was reading a few Python codes and I saw something called an assertIt's my first time seeing this keyword(?), so I'm looking for someone who can ex...

1 years ago

1 answers
87 views
0
When do we use the ASSERT function?

There was an announcement in the OpenCV tutorial about using the alert function, so I'm curious how to use it

1 years ago

1 answers
91 views
0
Can't I use an assistant?

The creator of Go language wrote it down hereDoes everyone else think the same?Why doesn't Go have an Assertion?Go does not have an assessment. It's certainly convenient to have, but in our experience...

1 years ago

1 answers
112 views
0
How do I stack trace the C++ app?

I made a c++ app, but it keeps dying by itself.stacktrace I want to see what's going onI've only heard of it, but I don't know howMy app uses linux/window/macCompiled all to gcc.After the app dies, wh...


© 2024 OneMinuteCode. All rights reserved.