vc查看宏展开之后的结果的查看方式http://www.52rd.com/Blog/Detail_RD.Blog_xjl20008_8567.html

本文介绍了一种在Visual C++中查看宏展开的方法:通过项目菜单设置预处理器选项,并使用/P参数重新构建项目以生成与.cpp同名的.i文件。
查看展开后的宏:
vc:
 project   menu->settings 
   project   settings   dialog 
   C/C++   tab 
   category   :   preprocessor 
   Project   options: 
   最后加上   /P 
   rebuild   all,会产生于.cpp同名的.i文件。在这里宏被展开了 
C:\Users\XJL04\PycharmProjects\PythonProject\.venv\Scripts\python.exe "C:/Program Files/JetBrains/PyCharm 2025.1/plugins/python-ce/helpers/pycharm/_jb_pytest_runner.py" --path C:\Users\XJL04\PycharmProjects\PythonProject\test1.py Testing started at 17:34 ... Launching pytest with arguments C:\Users\XJL04\PycharmProjects\PythonProject\test1.py --no-header --no-summary -q in C:\Users\XJL04\PycharmProjects\PythonProject ============================= test session starts ============================= collecting ... collected 1 item test1.py::TestText2::test_text2 ======================== 1 failed, 1 warning in 4.69s ========================= FAILED [100%] test1.py:26 (TestText2.test_text2) '' != '您选择的日期 2025-04-17 是 星期四' 预期:'您选择的日期 2025-04-17 是 星期四' 实际:'' <点击以查看差异> self = <test1.TestText2 object at 0x0000028ED95F8F50> def test_text2(self): self.driver.get("http://localhost:63343/untitled/index.html?_ijt=2ig1rc5q55f9jj6fl8s9kjm7od") self.driver.set_window_size(1050, 1001) date_input = self.driver.find_element(By.ID, "dateInput") date_input.click() date_input.send_keys("2025-04-17") # 点击按钮 button = self.driver.find_element(By.CSS_SELECTOR, "button") button.click() # 鼠标移动到按钮(无偏移) actions = ActionChains(self.driver) actions.move_to_element(button).perform() # 鼠标移动到body元素特定位置(使用正确的方法) body = self.driver.find_element(By.CSS_SELECTOR, "body") actions = ActionChains(self.driver) actions.move_to_element_with_offset(body, 0, 0).perform() # 使用带偏移量的方法 # self.driver.find_element(By.ID, "dateInput").click() # self.driver.find_element(By.ID, "dateInput").send_keys("2025-04-17") # self.driver.find_element(By.CSS_SELECTOR, "button").click() # element = self.driver.find_element(By.CSS_SELECTOR, "button") # actions = ActionChains(self.driver) # actions.move_to_element(element).perform() # element =
最新发布
04-23
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值