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.
不同的文件处理程序如何读取文件。我假设他们中的大多数人将其作为字符串读取。例如在 awk 中,如果文件随后根据分隔符拆分,那么它如何区分数字字段和字符串字段(如果未指定 CONVFMT)?
如果您将其视为字符串,它将是一个字符串,如果您尝试执行数字操作,它将被解析为一个数字并执行此操作。