sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #42855
Re: [Question #644039]: Convert string into numerical data
Question #644039 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/644039
Status: Open => Answered
masuo proposed the following answer:
#convert strings to numeric
str_x = "10"
num_x = int(str_x)
num_y = num_x + 1
#convert numeric to strings
str_y = str(num_y)
#confirm type of variable
try:
import builtins
except ImportError:
import __builtin__ as builtins
print "num_y:",builtins.type(num_y)
print "str_y:",builtins.type(str_y)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.