字符串的棘手连接

我必须将字符串格式化为特定的格式,但不幸的是,我的所有尝试都失败了。

# What I want:
//*[@id="ember205"]

# What I am getting:
//*[@id=ember205]

# Additional details, where I need it and the way I am constructing it:
moveToStep = str("ember"+str(int(199)+int(step_number * 3)))
driver.find_element_by_xpath("//*[@id="+moveToStep+"]").click()

任何帮助将非常感激

评论