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.
Nastran 网格格式
我从 NASTRAN.bdf 文件中读取一些负指数值时遇到问题。例如,此列表包含 z 坐标。
如何将 -5.75-3 转换为 -5.75e-3 ?
我今天遇到了同样的问题,写了这样的东西:
def nastran_float(s): s = s.replace('-','e-') s = s.replace('+','e+') if s[0] == 'e': s = s[1:] return float(s)