A
Size: a a a
A
𝕬
import re
print(re.match(r'^-?\d+(?:\.\d+)?$', your_string))
БГ
bool(0%1) == bool(1.0%1)
БГ
A
A
A
БГ
py3
int("1.1")
Traceback (most recent call last):
File "1057199018/source.py", line 1, in <module>
int("1.1")
ValueError: invalid literal for int() with base 10: '1.1'
БГ
py3
int("1.1")
Traceback (most recent call last):
File "1057199018/source.py", line 1, in <module>
int("1.1")
ValueError: invalid literal for int() with base 10: '1.1'
𝕬
𝕬
БГ
py3
int("1.1")
Traceback (most recent call last):
File "1057199018/source.py", line 1, in <module>
int("1.1")
ValueError: invalid literal for int() with base 10: '1.1'
py3
int("1.0")
Traceback (most recent call last):
File "1235689129/source.py", line 1, in <module>
int("1.0")
ValueError: invalid literal for int() with base 10: '1.0'
БГ
py3
int("1.0")
Traceback (most recent call last):
File "1235689129/source.py", line 1, in <module>
int("1.0")
ValueError: invalid literal for int() with base 10: '1.0'
БГ
𝕬
ᅠ
E
bool(float(x)%1)
A
𝕬
БГ
try:
int (input_value)