Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
将 f2py 与 .f90 文件一起使用时,是否必须使用标志 !f2py 而不是 Cf2py?我使用 intel fortran 编译器,如果我使用 !f2py,它似乎编译为 .pyd 文件。如果我使用 Cf2py,它会失败。谢谢你的帮助。
是的。
它与 f2py 无关,如果您使用.f90的是编译器,编译器将采用自由形式,并且在自由形式中,注释仅以!. 在固定形式中,它们也以 . 开头C。
.f90
!
C