version tag

21 questions


1 answers
95 views
0
How can I determine if the string is a number (integer plus real numbers) in Python?

If you use isdigit(), only the integer is true, and the real type shows FalseI don't think there's anything like isfloat() what should I do?


1 answers
104 views
0
Is there a way to find out the Python version inside the Python code?

Is there a way to find out the version of Python interpreter in the script?

2 years ago

1 answers
129 views
0
How do I change int to QString?

Is there a function that takes int as a factor and returns QString?I'm looking for a function like intToQSTring() in the code below!int i = 42;QString s = intToQSTring(i)

2 years ago

1 answers
183 views
0
How do I change the string to boolean?

How do I change the string to boolean?def strToBool(s): return str.toupper() == TRUEIs there any function that Python provides other than what I define together?


1 answers
130 views
0
How do I check if I can write new/lost grammar?

You want to check the grammar and functions affected by the version, such as the trinomial operator from 2.5, or the missing xrange, in 3.x.I wrote the code with the intention of raising an exception ...

2 years ago

1 answers
126 views
0
How to manage projects for added code by feature

First of all, thank you for reading my question.As in a typical (git version management I've experienced), the version goes up according to the source code modification and feature addition, so I don'...


3 answers
176 views
0
Why can only higher-class methods be used if class-type conversion is performed in Java?

The most incomprehensible part is that the parent class' method is only available when the type transformation is performed.Although it can be understood that the ultimate purpose of transforming the ...

2 years ago

1 answers
166 views
0
I am curious about converting the object type data into a list on Android

I get the value from Google Firebase database to getvalue.When I saved it as a set value, the data that was listed was saved as an object typeI'm calling it getValue, but I have to change the object d...


2 answers
117 views
0
Python basic questions) essence conversion program) int() can't convert non-string with explicit base

select= int (input(decision of decimal (16/10/8/2):)num=input (Enter Value:)if select !=2 and select != 8 and select != 16 and select != 10 : print(Please enter only one of the 16,10,8,2 numbers) ex...

2 years ago

1 answers
82 views
0
I want to change the int to a string

Not the way I know itPlease tell me the easiest way to change the int type to string!//1.int a = 10;char *intStr = itoa(a);string str = string(intStr);//2.int a = 10;stringstream ss;ss << a;stri...

- 1 - »

© 2024 OneMinuteCode. All rights reserved.