正如 printf(...) 用于格式化输出一样,你可以使用 scanf(...) 进行格式化输入。
format可以包含关于如何格式化输入参数的规则(参见第 8.2 页上的表 )。它也可以包含
表 8.2: Libc - scanf 转换