warning C4129(vs 路径中常出现的‘\’)

  要打开一个文件,文件路径为"C:\Users\HP\Documents\Visual Studio 2008\MyProject\Motion\svm\result.out",结果编译出错了:

         warning C4129: “H”: 不可识别的字符转义序列

         warning C4129: “D”: 不可识别的字符转义序列

         warning C4129: “V”: 不可识别的字符转义序列

         。。。。。。


解决:

把路径改为:"C:\\Users\\HP\\Documents\\Visual Studio 2008\\MyProject\\Motion\\svm\\result.out"就识别路径了~~

dell@dell:~/Vasp-C/dy/Bi2Te3/PBE/1$ python3 convert_to_h5.py Warning: could not identify MPI environment! Starting serial run at: 2025-06-02 03:45:13.091938 /usr/lib/python3/dist-packages/triqs_dft_tools/block_structure.py:38: SyntaxWarning: invalid escape sequence '\d' """ Contains information about the Green function structure. /usr/lib/python3/dist-packages/triqs_dft_tools/converters/wannier90.py:529: SyntaxWarning: invalid escape sequence '\e' """ Reading input from wannier90.inp Traceback (most recent call last): File "/home/dell/Vasp-C/dy/Bi2Te3/PBE/1/convert_to_h5.py", line 7, in <module> converter.convert_dft_input() File "/usr/lib/python3/dist-packages/triqs_dft_tools/converters/wannier90.py", line 144, in convert_dft_input input_params = read_input_file(self.inp_file, self.fortran_to_replace) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/triqs_dft_tools/converters/wannier90.py", line 397, in read_input_file assert len(line) == len(corr_shell_entries) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError0 4 4 4 120.0 30 spinors=.true. use_bloch_phases=.false. begin projections Bi : p Te : p end projections dis_win_min = -10.0 dis_win_max = 10.0 froz_win_min = -5.0 froz_win_max = 5.0 num_iter=1000 begin unit_cell_cart ang 11.0509005 0.0000000 0.0000000 10.1677140 4.3289715 0.0000000 10.1677140 2.0743929 3.7995905 end unit_cell_cart begin atoms_cart ang Bi 18.9312917 3.8623173 2.2917990 Bi 12.4550367 2.5410471 1.5077915 Te 24.5814585 5.0150510 2.97580133 Te 6.8048699 1.3883134 0.8237892 Te 0.0000000 0.0000000 0.0000000 end atoms_cart
最新发布
06-03
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值