如何在 Power Desktop Automate 中使用 python 脚本或 java 脚本将提取的网页数据变量转换为字符串?

How to convert extract webpage data variable into string using python script or java script in power desktop automate?

我正在尝试将提取网页数据的输出转换为字符串,但出现错误。

使用我尝试过的 python 脚本操作(这里的 htmlString 是“从网页中提取数据”操作的输出变量)。

tom = str("'htmlString'")

return 汤姆

tom = str("%htmlString%")

return tom 即使没有引用,在某处读到三个引用有效但对我不​​起作用。

任何帮助将不胜感激我被困在这里。

如果有人正在寻找答案,当我使用三引号时它起作用了:

str("""%htmlstring%""")