When you try to convert them to a string (for example, by echoing them to the browser), structured XML is automatically returned.
当您尝试将它们转换成一个字符串时(例如,通过将它们输出到浏览器),就会自动返回结构化的XML。
And as you might expect, I'm going to then try and see if I can convert that into a float.
正如你希望的我要试着把他们转化为浮点数,等一等。
By the way, if you want to convert a Windows path name to its UNIX equivalent or vice versa, try the built-in command cygpath.
顺便说一句,如果要把Windows路径名转换为等效的unix路径名或者相反,可以试试内置命令cygpath。
And as you might expect, I'm going to then try and see if I can convert that into a float.
正如你希望的我要试着把他们转化为浮点数,等一等。
So if in fact I wanted to make sure this was a number, I should have done something like either try and convert it to a number, which of course failed here, or put in a check to say where it is.
因此实际上如果我想确保,这是一个数字的话,我们的课程上的代码,在这里失败了,你或许应该在这里,放一个检查的东西。
应用推荐