如果您编写了使用额外结构成员的代码,那么您必须将其标记为不可移植的,并且包含一个完成相同任务的替换代码路径,如果您认为这样做特别友好的话。
If you write code that USES any extra structure members, you'll have to flag it as not portable and, if you're feeling particularly friendly, include an alternate code path that does the same thing.
当然,虽然您在PythonIDE中编写的代码可以很好地移植到Linux桌面,但是环境本身是不可以移植。
And of course, even though code you write in PythonIDE ports transfers fine to Linux desktops, the environment itself does not.
我们不会梳理早已移植的代码,例如需要移植到Power体系架构上的那些 “不可移植” 的代码,而是要介绍几个显然是故意设计的例子。
Rather than comb through already ported code for examples of "unportable" code that needs to be ported to Power Architecture, I'm going to give a few obviously contrived examples.
程序员只需要花少量的经历就可以回避不可移植的陷阱而写出复合Sun广告语的代码来“Write one,runanaywhere.”
Programmers need only to make simple efforts to avoid non-portable pitfalls in order to live up to Sun's trademarked motto "Write Once, Run Anywhere."
但是这样的手动制定使得代码不可移植,而为了获得可能是最好的结果,这样做同时也增加了程序员的工作量。
This manual specification makes the code non-portable, and introduces additional work for the programmer in achieving the best possible result.
但是这样的手动制定使得代码不可移植,而为了获得可能是最好的结果,这样做同时也增加了程序员的工作量。
This manual specification makes the code non-portable, and introduces additional work for the programmer in achieving the best possible result.
应用推荐