print.py
来自「boost库提供标准的C++ API 配合dev c++使用,功能更加强大」· Python 代码 · 共 46 行
PY
46 行
#!/usr/bin/python
from BoostBuild import Tester, List
t = Tester()
t.write("project-root.jam", "import gcc ;")
t.write("Jamfile", """
import print ;
print.output foo ;
print.text \\\"Something\\\" ;
DEPENDS all : foo ;
ALWAYS foo ;
""")
t.run_build_system()
t.expect_content("foo", """\"Something\"
""")
t.write("Jamfile", """
import print ;
print.output foo ;
print.text \\\"Somethingelse\\\" ;
DEPENDS all : foo ;
ALWAYS foo ;
""")
t.run_build_system()
t.expect_content("foo", """\"Something\"
\"Somethingelse\"
""")
t.write("Jamfile", """
import print ;
print.output foo ;
print.text \\\"Different\\\" : true ;
DEPENDS all : foo ;
ALWAYS foo ;
""")
t.run_build_system()
t.expect_content("foo", """\"Different\"
""")
t.cleanup()
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?