/scripts/bin2c.c

本文介绍了一个实用工具,能够将二进制文件转换为C语言中的字符串数组。通过命令行方式使用该工具,可以方便地将各种二进制数据如图像文件等转化为源代码中可用的形式。此工具对于嵌入式系统开发或需要直接操作二进制数据的项目尤其有用。

/*
 * Unloved program to convert a binary on stdin to a C include on stdout
 *
 * Jan 1999 Matt Mackall <
mpm@selenic.com>
 *
 * This software may be used and distributed according to the terms
 * of the GNU General Public License, incorporated herein by reference.
 */
/*
*此函数用于将一个二进制文件转化为一个C字符串数组,如可将图像文件转化为一个字符数组形式
*运行例子如下:
*cat bin2c | ./bin2c test
*将得到如下结果:
*const char test[] =
        "/x7f/x45/x4c/x46/x01/x01/x01/x00/x00/x00/x00/x00/x00/x00/x00/x00"
        "/x02/x00/x03/x00/x01/x00/x00/x00/x50/x83/x04/x08/x34/x00/x00/x00"
        "/xa8/x09/x00/x00/x00/x00/x00/x00/x34/x00/x20/x00/x08/x00/x28/x00"
        "/x1e/x00/x1b/x00/x06/x00/x00/x00/x34/x00/x00/x00/x34/x80/x04/x08"
        "/x34/x80/x04/x08/x00/x01/x00/x00/x00/x01/x00/x00/x05/x00/x00/x00"
        "/x04/x00/x00/x00/x03/x00/x00/x00/x34/x01/x00/x00/x34/x81/x04/x08"
        "/x34/x81/x04/x08/x13/x00/x00/x00/x13/x00/x00/x00/x04/x00/x00/x00"
        "/x01/x00/x00/x00/x01/x00/x00/x00/x00/x00/x00/x00/x00/x80/x04/x08"
        "/x00/x80/x04/x08/x94/x06/x00/x00/x94/x06/x00/x00/x05/x00/x00/x00"
        "/x00/x10/x00/x00/x01/x00/x00/x00/x94/x06/x00/x00/x94/x96/x04/x08"
        "/x94/x96/x04/x08/x04/x01/x00/x00/x0c/x01/x00/x00/x06/x00/x00/x00"
        "/x00/x10/x00/x00/x02/x00/x00/x00/xa8/x06/x00/x00/xa8/x96/x04/x08"
        "/xa8/x96/x04/x08/xc8/x00/x00/x00/xc8/x00/x00/x00/x06/x00/x00/x00"
        "/x04/x00/x00/x00/x04/x00/x00/x00/x48/x01/x00/x00/x48/x81/x04/x08"
        "/x48/x81/x04/x08/x44/x00/x00/x00/x44/x00/x00/x00/x04/x00/x00/x00"
        "/x04/x00/x00/x00/x50/xe5/x74/x64/x20/x06/x00/x00/x20/x86/x04/x08"
        "/x20/x86/x04/x08/x1c/x00/x00/x00/x1c/x00/x00/x00/x04/x00/x00/x00"
        "/x04/x00/x00/x00/x51/xe5/x74/x64/x00/x00/x00/x00/x00/x00/x00/x00"
        "/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x06/x00/x00/x00"
        "/x04/x00/x00/x00/x2f/x6c/x69/x62/x2f/x6c/x64/x2d/x6c/x69/x6e/x75"
        "/x78/x2e/x73/x6f/x2e/x32/x00/x00/x04/x00/x00/x00/x10/x00/x00/x00"
        "/x01/x00/x00/x00/x47/x4e/x55/x00/x00/x00/x00/x00/x02/x00/x00/x00"
        "/x06/x00/x00/x00/x09/x00/x00/x00/x04/x00/x00/x00/x14/x00/x00/x00"
        "/x03/x00/x00/x00/x47/x4e/x55/x00/x6e/x84/xaa/x6c/xd3/x1f/x77/xe5"
        "/x28/x02/x6b/xe5/x6a/xf2/x8d/x97/xde/x18/xda/xd5/x02/x00/x00/x00"
        "/x06/x00/x00/x00/x01/x00/x00/x00/x05/x00/x00/x00/x00/x20/x00/x20"
        "/x00/x00/x00/x00/x06/x00/x00/x00/xad/x4b/xe3/xc0/x00/x00/x00/x00"
        "/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x35/x00/x00/x00"
        "/x00/x00/x00/x00/xf2/x00/x00/x00/x12/x00/x00/x00/x01/x00/x00/x00"
        "/x00/x00/x00/x00/x00/x00/x00/x00/x20/x00/x00/x00/x3d/x00/x00/x00"
        "/x00/x00/x00/x00/xb6/x01/x00/x00/x12/x00/x00/x00/x2e/x00/x00/x00"
        "/x00/x00/x00/x00/x39/x00/x00/x00/x12/x00/x00/x00/x29/x00/x00/x00"
        "/x00/x00/x00/x00/x8f/x01/x00/x00/x12/x00/x00/x00/x1a/x00/x00/x00"
        "/xd8/x85/x04/x08/x04/x00/x00/x00/x11/x00/x0f/x00/x00/x5f/x5f/x67"
        "/x6d/x6f/x6e/x5f/x73/x74/x61/x72/x74/x5f/x5f/x00/x6c/x69/x62/x63"
        "/x2e/x73/x6f/x2e/x36/x00/x5f/x49/x4f/x5f/x73/x74/x64/x69/x6e/x5f"
        "/x75/x73/x65/x64/x00/x70/x75/x74/x73/x00/x70/x72/x69/x6e/x74/x66"
        "/x00/x67/x65/x74/x63/x68/x61/x72/x00/x5f/x5f/x6c/x69/x62/x63/x5f"
        "/x73/x74/x61/x72/x74/x5f/x6d/x61/x69/x6e/x00/x47/x4c/x49/x42/x43"
        "/x5f/x32/x2e/x30/x00/x00/x00/x00/x02/x00/x00/x00/x02/x00/x02/x00"
        "/x02/x00/x01/x00/x01/x00/x01/x00/x10/x00/x00/x00/x10/x00/x00/x00"
        "/x00/x00/x00/x00/x10/x69/x69/x0d/x00/x00/x02/x00/x4f/x00/x00/x00"
        "/x00/x00/x00/x00/x70/x97/x04/x08/x06/x02/x00/x00/x80/x97/x04/x08"
        "/x07/x01/x00/x00/x84/x97/x04/x08/x07/x02/x00/x00/x88/x97/x04/x08"
        "/x07/x03/x00/x00/x8c/x97/x04/x08/x07/x04/x00/x00/x90/x97/x04/x08"
        "/x07/x05/x00/x00/x55/x89/xe5/x83/xec/x08/xe8/x95/x00/x00/x00/xe8"
        "/x1c/x01/x00/x00/xe8/xa7/x02/x00/x00/xc9/xc3/x00/xff/x35/x78/x97"
        "/x04/x08/xff/x25/x7c/x97/x04/x08/x00/x00/x00/x00/xff/x25/x80/x97"
        "/x04/x08/x68/x00/x00/x00/x00/xe9/xe0/xff/xff/xff/xff/x25/x84/x97"
        "/x04/x08/x68/x08/x00/x00/x00/xe9/xd0/xff/xff/xff/xff/x25/x88/x97"
        "/x04/x08/x68/x10/x00/x00/x00/xe9/xc0/xff/xff/xff/xff/x25/x8c/x97"
        "/x04/x08/x68/x18/x00/x00/x00/xe9/xb0/xff/xff/xff/xff/x25/x90/x97"
        "/x04/x08/x68/x20/x00/x00/x00/xe9/xa0/xff/xff/xff/x00/x00/x00/x00"
        "/x31/xed/x5e/x89/xe1/x83/xe4/xf0/x50/x54/x52/x68/x10/x85/x04/x08"
        "/x68/x20/x85/x04/x08/x51/x56/x68/x24/x84/x04/x08/xe8/xab/xff/xff"
        "/xff/xf4/x90/x90/x55/x89/xe5/x53/x83/xec/x04/xe8/x00/x00/x00/x00"
        "/x5b/x81/xc3/xf4/x13/x00/x00/x8b/x93/xfc/xff/xff/xff/x85/xd2/x74"
        "/x05/xe8/x76/xff/xff/xff/x58/x5b/xc9/xc3/x90/x90/x90/x90/x90/x90"
        "/x55/x89/xe5/x53/x83/xec/x04/x80/x3d/x9c/x97/x04/x08/x00/x75/x3f"
        "/xb8/xa0/x96/x04/x08/x2d/x9c/x96/x04/x08/xc1/xf8/x02/x8d/x58/xff"
        "/xa1/x98/x97/x04/x08/x39/xc3/x76/x1f/x8d/xb4/x26/x00/x00/x00/x00"
        "/x83/xc0/x01/xa3/x98/x97/x04/x08/xff/x14/x85/x9c/x96/x04/x08/xa1"
        "/x98/x97/x04/x08/x39/xc3/x77/xe8/xc6/x05/x9c/x97/x04/x08/x01/x83"
        "/xc4/x04/x5b/x5d/xc3/x8d/x74/x26/x00/x8d/xbc/x27/x00/x00/x00/x00"
        "/x55/x89/xe5/x83/xec/x08/xa1/xa4/x96/x04/x08/x85/xc0/x74/x12/xb8"
        "/x00/x00/x00/x00/x85/xc0/x74/x09/xc7/x04/x24/xa4/x96/x04/x08/xff"
        "/xd0/xc9/xc3/x90/x8d/x4c/x24/x04/x83/xe4/xf0/xff/x71/xfc/x55/x89"
        "/xe5/x51/x83/xec/x24/x89/x4d/xe4/xc7/x45/xf8/x00/x00/x00/x00/x8b"
        "/x45/xe4/x83/x38/x01/x7e/x41/x8b/x55/xe4/x83/x3a/x02/x7e/x10/x8b"
        "/x55/xe4/x8b/x42/x04/x83/xc0/x08/x8b/x00/x89/x45/xe8/xeb/x07/xc7"
        "/x45/xe8/xe0/x85/x04/x08/x8b/x55/xe4/x8b/x42/x04/x83/xc0/x04/x8b"
        "/x00/x8b/x55/xe8/x89/x54/x24/x08/x89/x44/x24/x04/xc7/x04/x24/xe1"
        "/x85/x04/x08/xe8/xa4/xfe/xff/xff/xc7/x04/x24/xf6/x85/x04/x08/xe8"
        "/x98/xfe/xff/xff/xeb/x21/x83/x45/xf8/x01/x8b/x45/xf4/x89/x44/x24"
        "/x04/xc7/x04/x24/xf9/x85/x04/x08/xe8/x7f/xfe/xff/xff/x8b/x45/xf8"
        "/x83/xe0/x0f/x85/xc0/x74/x0e/xe8/x40/xfe/xff/xff/x89/x45/xf4/x83"
        "/x7d/xf4/xff/x75/xd1/xc7/x04/x24/x00/x86/x04/x08/xe8/x6b/xfe/xff"
        "/xff/x83/x7d/xf4/xff/x75/xb1/x8b/x45/xe4/x83/x38/x01/x7e/x22/x8b"
        "/x55/xe4/x8b/x42/x04/x83/xc0/x04/x8b/x10/x8b/x45/xf8/x89/x44/x24"
        "/x08/x89/x54/x24/x04/xc7/x04/x24/x02/x86/x04/x08/xe8/x2b/xfe/xff"
        "/xff/xb8/x00/x00/x00/x00/x83/xc4/x24/x59/x5d/x8d/x61/xfc/xc3/x90"
        "/x55/x89/xe5/x5d/xc3/x8d/x74/x26/x00/x8d/xbc/x27/x00/x00/x00/x00"
        "/x55/x89/xe5/x57/x56/x53/xe8/x5e/x00/x00/x00/x81/xc3/x49/x12/x00"
        "/x00/x83/xec/x1c/xe8/x9b/xfd/xff/xff/x8d/x83/x20/xff/xff/xff/x89"
        "/x45/xf0/x8d/x83/x20/xff/xff/xff/x29/x45/xf0/xc1/x7d/xf0/x02/x8b"
        "/x55/xf0/x85/xd2/x74/x2b/x31/xff/x89/xc6/x8d/xb6/x00/x00/x00/x00"
        "/x8b/x45/x10/x83/xc7/x01/x89/x44/x24/x08/x8b/x45/x0c/x89/x44/x24"
        "/x04/x8b/x45/x08/x89/x04/x24/xff/x16/x83/xc6/x04/x39/x7d/xf0/x75"
        "/xdf/x83/xc4/x1c/x5b/x5e/x5f/x5d/xc3/x8b/x1c/x24/xc3/x90/x90/x90"
        "/x55/x89/xe5/x53/xbb/x94/x96/x04/x08/x83/xec/x04/xa1/x94/x96/x04"
        "/x08/x83/xf8/xff/x74/x0c/x83/xeb/x04/xff/xd0/x8b/x03/x83/xf8/xff"
        "/x75/xf4/x83/xc4/x04/x5b/x5d/xc3/x55/x89/xe5/x53/x83/xec/x04/xe8"
        "/x00/x00/x00/x00/x5b/x81/xc3/xb0/x11/x00/x00/xe8/xd0/xfd/xff/xff"
        "/x59/x5b/xc9/xc3/x03/x00/x00/x00/x01/x00/x02/x00/x00/x00/x00/x00"
        "/x00/x63/x6f/x6e/x73/x74/x20/x63/x68/x61/x72/x20/x25/x73/x5b/x5d"
        "/x20/x25/x73/x3d/x0a/x00/x09/x22/x00/x5c/x78/x25/x30/x32/x78/x00"
        "/x22/x00/x09/x3b/x0a/x0a/x63/x6f/x6e/x73/x74/x20/x69/x6e/x74/x20"
        "/x25/x73/x5f/x73/x69/x7a/x65/x20/x3d/x20/x25/x64/x3b/x0a/x00/x00"
        "/x01/x1b/x03/x3b/x18/x00/x00/x00/x02/x00/x00/x00/xf0/xfe/xff/xff"
        "/x34/x00/x00/x00/x00/xff/xff/xff/x50/x00/x00/x00/x14/x00/x00/x00"
        "/x00/x00/x00/x00/x01/x7a/x52/x00/x01/x7c/x08/x01/x1b/x0c/x04/x04"
        "/x88/x01/x00/x00/x18/x00/x00/x00/x1c/x00/x00/x00/xb4/xfe/xff/xff"
        "/x05/x00/x00/x00/x00/x41/x0e/x08/x85/x02/x42/x0d/x05/x00/x00/x00"
        "/x1c/x00/x00/x00/x38/x00/x00/x00/xa8/xfe/xff/xff/x69/x00/x00/x00"
        "/x00/x41/x0e/x08/x85/x02/x42/x0d/x05/x43/x83/x05/x86/x04/x87/x03"
        "/x00/x00/x00/x00/xff/xff/xff/xff/x00/x00/x00/x00/xff/xff/xff/xff"
        "/x00/x00/x00/x00/x00/x00/x00/x00/x01/x00/x00/x00/x10/x00/x00/x00"
        "/x0c/x00/x00/x00/xd4/x82/x04/x08/x0d/x00/x00/x00/xb8/x85/x04/x08"
        "/xf5/xfe/xff/x6f/x8c/x81/x04/x08/x05/x00/x00/x00/x1c/x82/x04/x08"
        "/x06/x00/x00/x00/xac/x81/x04/x08/x0a/x00/x00/x00/x59/x00/x00/x00"
        "/x0b/x00/x00/x00/x10/x00/x00/x00/x15/x00/x00/x00/x00/x00/x00/x00"
        "/x03/x00/x00/x00/x74/x97/x04/x08/x02/x00/x00/x00/x28/x00/x00/x00"
        "/x14/x00/x00/x00/x11/x00/x00/x00/x17/x00/x00/x00/xac/x82/x04/x08"
        "/x11/x00/x00/x00/xa4/x82/x04/x08/x12/x00/x00/x00/x08/x00/x00/x00"
        "/x13/x00/x00/x00/x08/x00/x00/x00/xfe/xff/xff/x6f/x84/x82/x04/x08"
        "/xff/xff/xff/x6f/x01/x00/x00/x00/xf0/xff/xff/x6f/x76/x82/x04/x08"
        "/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00"
        "/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00"
        "/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00"
        "/x00/x00/x00/x00/xa8/x96/x04/x08/x00/x00/x00/x00/x00/x00/x00/x00"
        "/x02/x83/x04/x08/x12/x83/x04/x08/x22/x83/x04/x08/x32/x83/x04/x08"
        "/x42/x83/x04/x08/x00/x00/x00/x00/x00/x47/x43/x43/x3a/x20/x28/x47"
        "/x4e/x55/x29/x20/x34/x2e/x31/x2e/x32/x20/x32/x30/x30/x37/x30/x39"
        "/x32/x35/x20/x28/x52/x65/x64/x20/x48/x61/x74/x20/x34/x2e/x31/x2e"
        "/x32/x2d/x33/x32/x29/x00/x00/x47/x43/x43/x3a/x20/x28/x47/x4e/x55"
        "/x29/x20/x34/x2e/x31/x2e/x32/x20/x32/x30/x30/x37/x30/x39/x32/x35"
        "/x20/x28/x52/x65/x64/x20/x48/x61/x74/x20/x34/x2e/x31/x2e/x32/x2d"
        "/x33/x32/x29/x00/x00/x47/x43/x43/x3a/x20/x28/x47/x4e/x55/x29/x20"
        "/x34/x2e/x31/x2e/x32/x20/x32/x30/x30/x37/x30/x39/x32/x35/x20/x28"
        "/x52/x65/x64/x20/x48/x61/x74/x20/x34/x2e/x31/x2e/x32/x2d/x33/x33"
        "/x29/x00/x00/x47/x43/x43/x3a/x20/x28/x47/x4e/x55/x29/x20/x34/x2e"
        "/x31/x2e/x32/x20/x32/x30/x30/x37/x30/x39/x32/x35/x20/x28/x52/x65"
        "/x64/x20/x48/x61/x74/x20/x34/x2e/x31/x2e/x32/x2d/x33/x33/x29/x00"
        "/x00/x47/x43/x43/x3a/x20/x28/x47/x4e/x55/x29/x20/x34/x2e/x31/x2e"
        "/x32/x20/x32/x30/x30/x37/x30/x39/x32/x35/x20/x28/x52/x65/x64/x20"
        "/x48/x61/x74/x20/x34/x2e/x31/x2e/x32/x2d/x33/x33/x29/x00/x00/x47"
        "/x43/x43/x3a/x20/x28/x47/x4e/x55/x29/x20/x34/x2e/x31/x2e/x32/x20"
        "/x32/x30/x30/x37/x30/x39/x32/x35/x20/x28/x52/x65/x64/x20/x48/x61"
        "/x74/x20/x34/x2e/x31/x2e/x32/x2d/x33/x32/x29/x00/x00/x2e/x73/x79"
        "/x6d/x74/x61/x62/x00/x2e/x73/x74/x72/x74/x61/x62/x00/x2e/x73/x68"
        "/x73/x74/x72/x74/x61/x62/x00/x2e/x69/x6e/x74/x65/x72/x70/x00/x2e"
        "/x6e/x6f/x74/x65/x2e/x41/x42/x49/x2d/x74/x61/x67/x00/x2e/x6e/x6f"
        "/x74/x65/x2e/x67/x6e/x75/x2e/x62/x75/x69/x6c/x64/x2d/x69/x64/x00"
        "/x2e/x67/x6e/x75/x2e/x68/x61/x73/x68/x00/x2e/x64/x79/x6e/x73/x79"
        "/x6d/x00/x2e/x64/x79/x6e/x73/x74/x72/x00/x2e/x67/x6e/x75/x2e/x76"
        "/x65/x72/x73/x69/x6f/x6e/x00/x2e/x67/x6e/x75/x2e/x76/x65/x72/x73"
        "/x69/x6f/x6e/x5f/x72/x00/x2e/x72/x65/x6c/x2e/x64/x79/x6e/x00/x2e"
        "/x72/x65/x6c/x2e/x70/x6c/x74/x00/x2e/x69/x6e/x69/x74/x00/x2e/x74"
        "/x65/x78/x74/x00/x2e/x66/x69/x6e/x69/x00/x2e/x72/x6f/x64/x61/x74"
        "/x61/x00/x2e/x65/x68/x5f/x66/x72/x61/x6d/x65/x5f/x68/x64/x72/x00"
        "/x2e/x65/x68/x5f/x66/x72/x61/x6d/x65/x00/x2e/x63/x74/x6f/x72/x73"
        "/x00/x2e/x64/x74/x6f/x72/x73/x00/x2e/x6a/x63/x72/x00/x2e/x64/x79"
        "/x6e/x61/x6d/x69/x63/x00/x2e/x67/x6f/x74/x00/x2e/x67/x6f/x74/x2e"
        "/x70/x6c/x74/x00/x2e/x64/x61/x74/x61/x00/x2e/x62/x73/x73/x00/x2e"
        "/x63/x6f/x6d/x6d/x65/x6e/x74/x00/x00/x00/x00/x00/x00/x00/x00/x00"
        "/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00"
        "/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00"
        "/x1b/x00/x00/x00/x01/x00/x00/x00/x02/x00/x00/x00/x34/x81/x04/x08"
        "/x34/x01/x00/x00/x13/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00"
        "/x01/x00/x00/x00/x00/x00/x00/x00/x23/x00/x00/x00/x07/x00/x00/x00"
        "/x02/x00/x00/x00/x48/x81/x04/x08/x48/x01/x00/x00/x20/x00/x00/x00"
        "/x00/x00/x00/x00/x00/x00/x00/x00/x04/x00/x00/x00/x00/x00/x00/x00"
        "/x31/x00/x00/x00/x07/x00/x00/x00/x02/x00/x00/x00/x68/x81/x04/x08"
        "/x68/x01/x00/x00/x24/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00"
        "/x04/x00/x00/x00/x00/x00/x00/x00/x44/x00/x00/x00/xf6/xff/xff/x6f"
        "/x02/x00/x00/x00/x8c/x81/x04/x08/x8c/x01/x00/x00/x20/x00/x00/x00"
        "/x05/x00/x00/x00/x00/x00/x00/x00/x04/x00/x00/x00/x04/x00/x00/x00"
        "/x4e/x00/x00/x00/x0b/x00/x00/x00/x02/x00/x00/x00/xac/x81/x04/x08"
        "/xac/x01/x00/x00/x70/x00/x00/x00/x06/x00/x00/x00/x01/x00/x00/x00"
        "/x04/x00/x00/x00/x10/x00/x00/x00/x56/x00/x00/x00/x03/x00/x00/x00"
        "/x02/x00/x00/x00/x1c/x82/x04/x08/x1c/x02/x00/x00/x59/x00/x00/x00"
        "/x00/x00/x00/x00/x00/x00/x00/x00/x01/x00/x00/x00/x00/x00/x00/x00"
        "/x5e/x00/x00/x00/xff/xff/xff/x6f/x02/x00/x00/x00/x76/x82/x04/x08"
        "/x76/x02/x00/x00/x0e/x00/x00/x00/x05/x00/x00/x00/x00/x00/x00/x00"
        "/x02/x00/x00/x00/x02/x00/x00/x00/x6b/x00/x00/x00/xfe/xff/xff/x6f"
        "/x02/x00/x00/x00/x84/x82/x04/x08/x84/x02/x00/x00/x20/x00/x00/x00"
        "/x06/x00/x00/x00/x01/x00/x00/x00/x04/x00/x00/x00/x00/x00/x00/x00"
        "/x7a/x00/x00/x00/x09/x00/x00/x00/x02/x00/x00/x00/xa4/x82/x04/x08"
        "/xa4/x02/x00/x00/x08/x00/x00/x00/x05/x00/x00/x00/x00/x00/x00/x00"
        "/x04/x00/x00/x00/x08/x00/x00/x00/x83/x00/x00/x00/x09/x00/x00/x00"
        "/x02/x00/x00/x00/xac/x82/x04/x08/xac/x02/x00/x00/x28/x00/x00/x00"
        "/x05/x00/x00/x00/x0c/x00/x00/x00/x04/x00/x00/x00/x08/x00/x00/x00"
        "/x8c/x00/x00/x00/x01/x00/x00/x00/x06/x00/x00/x00/xd4/x82/x04/x08"
        "/xd4/x02/x00/x00/x17/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00"
        "/x04/x00/x00/x00/x00/x00/x00/x00/x87/x00/x00/x00/x01/x00/x00/x00"
        "/x06/x00/x00/x00/xec/x82/x04/x08/xec/x02/x00/x00/x60/x00/x00/x00"
        "/x00/x00/x00/x00/x00/x00/x00/x00/x04/x00/x00/x00/x04/x00/x00/x00"
        "/x92/x00/x00/x00/x01/x00/x00/x00/x06/x00/x00/x00/x50/x83/x04/x08"
        "/x50/x03/x00/x00/x68/x02/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00"
        "/x10/x00/x00/x00/x00/x00/x00/x00/x98/x00/x00/x00/x01/x00/x00/x00"
        "/x06/x00/x00/x00/xb8/x85/x04/x08/xb8/x05/x00/x00/x1c/x00/x00/x00"
        "/x00/x00/x00/x00/x00/x00/x00/x00/x04/x00/x00/x00/x00/x00/x00/x00"
        "/x9e/x00/x00/x00/x01/x00/x00/x00/x02/x00/x00/x00/xd4/x85/x04/x08"
        "/xd4/x05/x00/x00/x4b/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00"
        "/x04/x00/x00/x00/x00/x00/x00/x00/xa6/x00/x00/x00/x01/x00/x00/x00"
        "/x02/x00/x00/x00/x20/x86/x04/x08/x20/x06/x00/x00/x1c/x00/x00/x00"
        "/x00/x00/x00/x00/x00/x00/x00/x00/x04/x00/x00/x00/x00/x00/x00/x00"
        "/xb4/x00/x00/x00/x01/x00/x00/x00/x02/x00/x00/x00/x3c/x86/x04/x08"
        "/x3c/x06/x00/x00/x58/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00"
        "/x04/x00/x00/x00/x00/x00/x00/x00/xbe/x00/x00/x00/x01/x00/x00/x00"
        "/x03/x00/x00/x00/x94/x96/x04/x08/x94/x06/x00/x00/x08/x00/x00/x00"
        "/x00/x00/x00/x00/x00/x00/x00/x00/x04/x00/x00/x00/x00/x00/x00/x00"
        "/xc5/x00/x00/x00/x01/x00/x00/x00/x03/x00/x00/x00/x9c/x96/x04/x08"
        "/x9c/x06/x00/x00/x08/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00"
        "/x04/x00/x00/x00/x00/x00/x00/x00/xcc/x00/x00/x00/x01/x00/x00/x00"
        "/x03/x00/x00/x00/xa4/x96/x04/x08/xa4/x06/x00/x00/x04/x00/x00/x00"
        "/x00/x00/x00/x00/x00/x00/x00/x00/x04/x00/x00/x00/x00/x00/x00/x00"
        "/xd1/x00/x00/x00/x06/x00/x00/x00/x03/x00/x00/x00/xa8/x96/x04/x08"
        "/xa8/x06/x00/x00/xc8/x00/x00/x00/x06/x00/x00/x00/x00/x00/x00/x00"
        "/x04/x00/x00/x00/x08/x00/x00/x00/xda/x00/x00/x00/x01/x00/x00/x00"
        "/x03/x00/x00/x00/x70/x97/x04/x08/x70/x07/x00/x00/x04/x00/x00/x00"
        "/x00/x00/x00/x00/x00/x00/x00/x00/x04/x00/x00/x00/x04/x00/x00/x00"
        "/xdf/x00/x00/x00/x01/x00/x00/x00/x03/x00/x00/x00/x74/x97/x04/x08"
        "/x74/x07/x00/x00/x20/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00"
        "/x04/x00/x00/x00/x04/x00/x00/x00/xe8/x00/x00/x00/x01/x00/x00/x00"
        "/x03/x00/x00/x00/x94/x97/x04/x08/x94/x07/x00/x00/x04/x00/x00/x00"
        "/x00/x00/x00/x00/x00/x00/x00/x00/x04/x00/x00/x00/x00/x00/x00/x00"
        "/xee/x00/x00/x00/x08/x00/x00/x00/x03/x00/x00/x00/x98/x97/x04/x08"
        "/x98/x07/x00/x00/x08/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00"
        "/x04/x00/x00/x00/x00/x00/x00/x00/xf3/x00/x00/x00/x01/x00/x00/x00"
        "/x00/x00/x00/x00/x00/x00/x00/x00/x98/x07/x00/x00/x14/x01/x00/x00"
        "/x00/x00/x00/x00/x00/x00/x00/x00/x01/x00/x00/x00/x00/x00/x00/x00"
        "/x11/x00/x00/x00/x03/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00"
        "/xac/x08/x00/x00/xfc/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00"
        "/x01/x00/x00/x00/x00/x00/x00/x00/x01/x00/x00/x00/x02/x00/x00/x00"
        "/x00/x00/x00/x00/x00/x00/x00/x00/x58/x0e/x00/x00/x40/x04/x00/x00"
        "/x1d/x00/x00/x00/x2e/x00/x00/x00/x04/x00/x00/x00/x10/x00/x00/x00"
        "/x09/x00/x00/x00/x03/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00"
        "/x98/x12/x00/x00/x30/x02/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00"
        "/x01/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00"
        "/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x00/x34/x81/x04/x08"
        "/x00/x00/x00/x00/x03/x00/x01/x00/x00/x00/x00/x00/x48/x81/x04/x08"
        "/x00/x00/x00/x00/x03/x00/x02/x00/x00/x00/x00/x00/x68/x81/x04/x08"
        "/x00/x00/x00/x00/x03/x00/x03/x00/x00/x00/x00/x00/x8c/x81/x04/x08"
        "/x00/x00/x00/x00/x03/x00/x04/x00/x00/x00/x00/x00/xac/x81/x04/x08"
        "/x00/x00/x00/x00/x03/x00/x05/x00/x00/x00/x00/x00/x1c/x82/x04/x08"
        "/x00/x00/x00/x00/x03/x00/x06/x00/x00/x00/x00/x00/x76/x82/x04/x08"
        "/x00/x00/x00/x00/x03/x00/x07/x00/x00/x00/x00/x00/x84/x82/x04/x08"
        "/x00/x00/x00/x00/x03/x00/x08/x00/x00/x00/x00/x00/xa4/x82/x04/x08"
        "/x00/x00/x00/x00/x03/x00/x09/x00/x00/x00/x00/x00/xac/x82/x04/x08"
        "/x00/x00/x00/x00/x03/x00/x0a/x00/x00/x00/x00/x00/xd4/x82/x04/x08"
        "/x00/x00/x00/x00/x03/x00/x0b/x00/x00/x00/x00/x00/xec/x82/x04/x08"
        "/x00/x00/x00/x00/x03/x00/x0c/x00/x00/x00/x00/x00/x50/x83/x04/x08"
        "/x00/x00/x00/x00/x03/x00/x0d/x00/x00/x00/x00/x00/xb8/x85/x04/x08"
        "/x00/x00/x00/x00/x03/x00/x0e/x00/x00/x00/x00/x00/xd4/x85/x04/x08"
        "/x00/x00/x00/x00/x03/x00/x0f/x00/x00/x00/x00/x00/x20/x86/x04/x08"
        "/x00/x00/x00/x00/x03/x00/x10/x00/x00/x00/x00/x00/x3c/x86/x04/x08"
        "/x00/x00/x00/x00/x03/x00/x11/x00/x00/x00/x00/x00/x94/x96/x04/x08"
        "/x00/x00/x00/x00/x03/x00/x12/x00/x00/x00/x00/x00/x9c/x96/x04/x08"
        "/x00/x00/x00/x00/x03/x00/x13/x00/x00/x00/x00/x00/xa4/x96/x04/x08"
        "/x00/x00/x00/x00/x03/x00/x14/x00/x00/x00/x00/x00/xa8/x96/x04/x08"
        "/x00/x00/x00/x00/x03/x00/x15/x00/x00/x00/x00/x00/x70/x97/x04/x08"
        "/x00/x00/x00/x00/x03/x00/x16/x00/x00/x00/x00/x00/x74/x97/x04/x08"
        "/x00/x00/x00/x00/x03/x00/x17/x00/x00/x00/x00/x00/x94/x97/x04/x08"
        "/x00/x00/x00/x00/x03/x00/x18/x00/x00/x00/x00/x00/x98/x97/x04/x08"
        "/x00/x00/x00/x00/x03/x00/x19/x00/x00/x00/x00/x00/x00/x00/x00/x00"
        "/x00/x00/x00/x00/x03/x00/x1a/x00/x01/x00/x00/x00/x74/x83/x04/x08"
        "/x00/x00/x00/x00/x02/x00/x0d/x00/x11/x00/x00/x00/x00/x00/x00/x00"
        "/x00/x00/x00/x00/x04/x00/xf1/xff/x1c/x00/x00/x00/x94/x96/x04/x08"
        "/x00/x00/x00/x00/x01/x00/x12/x00/x2a/x00/x00/x00/x9c/x96/x04/x08"
        "/x00/x00/x00/x00/x01/x00/x13/x00/x38/x00/x00/x00/xa4/x96/x04/x08"
        "/x00/x00/x00/x00/x01/x00/x14/x00/x45/x00/x00/x00/x98/x97/x04/x08"
        "/x04/x00/x00/x00/x01/x00/x19/x00/x53/x00/x00/x00/x9c/x97/x04/x08"
        "/x01/x00/x00/x00/x01/x00/x19/x00/x62/x00/x00/x00/xa0/x83/x04/x08"
        "/x00/x00/x00/x00/x02/x00/x0d/x00/x78/x00/x00/x00/x00/x84/x04/x08"
        "/x00/x00/x00/x00/x02/x00/x0d/x00/x11/x00/x00/x00/x00/x00/x00/x00"
        "/x00/x00/x00/x00/x04/x00/xf1/xff/x84/x00/x00/x00/x98/x96/x04/x08"
        "/x00/x00/x00/x00/x01/x00/x12/x00/x91/x00/x00/x00/x90/x86/x04/x08"
        "/x00/x00/x00/x00/x01/x00/x11/x00/x9f/x00/x00/x00/xa4/x96/x04/x08"
        "/x00/x00/x00/x00/x01/x00/x14/x00/xab/x00/x00/x00/x90/x85/x04/x08"
        "/x00/x00/x00/x00/x02/x00/x0d/x00/xc1/x00/x00/x00/x00/x00/x00/x00"
        "/x00/x00/x00/x00/x04/x00/xf1/xff/xc9/x00/x00/x00/x74/x97/x04/x08"
        "/x00/x00/x00/x00/x01/x02/x17/x00/xdf/x00/x00/x00/x94/x96/x04/x08"
        "/x00/x00/x00/x00/x00/x02/x12/x00/xf0/x00/x00/x00/x94/x96/x04/x08"
        "/x00/x00/x00/x00/x00/x02/x12/x00/x03/x01/x00/x00/xa8/x96/x04/x08"
        "/x00/x00/x00/x00/x01/x02/x15/x00/x0c/x01/x00/x00/x94/x97/x04/x08"
        "/x00/x00/x00/x00/x20/x00/x18/x00/x17/x01/x00/x00/x10/x85/x04/x08"
        "/x05/x00/x00/x00/x12/x00/x0d/x00/x27/x01/x00/x00/x50/x83/x04/x08"
        "/x00/x00/x00/x00/x12/x00/x0d/x00/x2e/x01/x00/x00/x00/x00/x00/x00"
        "/xf2/x00/x00/x00/x12/x00/x00/x00/x41/x01/x00/x00/x00/x00/x00/x00"
        "/x00/x00/x00/x00/x20/x00/x00/x00/x50/x01/x00/x00/x00/x00/x00/x00"
        "/x00/x00/x00/x00/x20/x00/x00/x00/x64/x01/x00/x00/xd4/x85/x04/x08"
        "/x04/x00/x00/x00/x11/x00/x0f/x00/x6b/x01/x00/x00/xb8/x85/x04/x08"
        "/x00/x00/x00/x00/x12/x00/x0e/x00/x71/x01/x00/x00/x00/x00/x00/x00"
        "/xb6/x01/x00/x00/x12/x00/x00/x00/x8e/x01/x00/x00/xd8/x85/x04/x08"
        "/x04/x00/x00/x00/x11/x00/x0f/x00/x9d/x01/x00/x00/x94/x97/x04/x08"
        "/x00/x00/x00/x00/x10/x00/x18/x00/xaa/x01/x00/x00/xdc/x85/x04/x08"
        "/x00/x00/x00/x00/x11/x02/x0f/x00/xb7/x01/x00/x00/xa0/x96/x04/x08"
        "/x00/x00/x00/x00/x11/x02/x13/x00/xc4/x01/x00/x00/x20/x85/x04/x08"
        "/x69/x00/x00/x00/x12/x00/x0d/x00/xd4/x01/x00/x00/x00/x00/x00/x00"
        "/x39/x00/x00/x00/x12/x00/x00/x00/xe6/x01/x00/x00/x98/x97/x04/x08"
        "/x00/x00/x00/x00/x10/x00/xf1/xff/xf2/x01/x00/x00/xa0/x97/x04/x08"
        "/x00/x00/x00/x00/x10/x00/xf1/xff/xf7/x01/x00/x00/x00/x00/x00/x00"
        "/x8f/x01/x00/x00/x12/x00/x00/x00/x07/x02/x00/x00/x98/x97/x04/x08"
        "/x00/x00/x00/x00/x10/x00/xf1/xff/x0e/x02/x00/x00/x89/x85/x04/x08"
        "/x00/x00/x00/x00/x12/x02/x0d/x00/x25/x02/x00/x00/x24/x84/x04/x08"
        "/xeb/x00/x00/x00/x12/x00/x0d/x00/x2a/x02/x00/x00/xd4/x82/x04/x08"
        "/x00/x00/x00/x00/x12/x00/x0b/x00/x00/x63/x61/x6c/x6c/x5f/x67/x6d"
        "/x6f/x6e/x5f/x73/x74/x61/x72/x74/x00/x63/x72/x74/x73/x74/x75/x66"
        "/x66/x2e/x63/x00/x5f/x5f/x43/x54/x4f/x52/x5f/x4c/x49/x53/x54/x5f"
        "/x5f/x00/x5f/x5f/x44/x54/x4f/x52/x5f/x4c/x49/x53/x54/x5f/x5f/x00"
        "/x5f/x5f/x4a/x43/x52/x5f/x4c/x49/x53/x54/x5f/x5f/x00/x64/x74/x6f"
        "/x72/x5f/x69/x64/x78/x2e/x35/x36/x34/x37/x00/x63/x6f/x6d/x70/x6c"
        "/x65/x74/x65/x64/x2e/x35/x36/x34/x35/x00/x5f/x5f/x64/x6f/x5f/x67"
        "/x6c/x6f/x62/x61/x6c/x5f/x64/x74/x6f/x72/x73/x5f/x61/x75/x78/x00"
        "/x66/x72/x61/x6d/x65/x5f/x64/x75/x6d/x6d/x79/x00/x5f/x5f/x43/x54"
        "/x4f/x52/x5f/x45/x4e/x44/x5f/x5f/x00/x5f/x5f/x46/x52/x41/x4d/x45"
        "/x5f/x45/x4e/x44/x5f/x5f/x00/x5f/x5f/x4a/x43/x52/x5f/x45/x4e/x44"
        "/x5f/x5f/x00/x5f/x5f/x64/x6f/x5f/x67/x6c/x6f/x62/x61/x6c/x5f/x63"
        "/x74/x6f/x72/x73/x5f/x61/x75/x78/x00/x62/x69/x6e/x32/x63/x2e/x63"
        "/x00/x5f/x47/x4c/x4f/x42/x41/x4c/x5f/x4f/x46/x46/x53/x45/x54/x5f"
        "/x54/x41/x42/x4c/x45/x5f/x00/x5f/x5f/x69/x6e/x69/x74/x5f/x61/x72"
        "/x72/x61/x79/x5f/x65/x6e/x64/x00/x5f/x5f/x69/x6e/x69/x74/x5f/x61"
        "/x72/x72/x61/x79/x5f/x73/x74/x61/x72/x74/x00/x5f/x44/x59/x4e/x41"
        "/x4d/x49/x43/x00/x64/x61/x74/x61/x5f/x73/x74/x61/x72/x74/x00/x5f"
        "/x5f/x6c/x69/x62/x63/x5f/x63/x73/x75/x5f/x66/x69/x6e/x69/x00/x5f"
        "/x73/x74/x61/x72/x74/x00/x67/x65/x74/x63/x68/x61/x72/x40/x40/x47"
        "/x4c/x49/x42/x43/x5f/x32/x2e/x30/x00/x5f/x5f/x67/x6d/x6f/x6e/x5f"
        "/x73/x74/x61/x72/x74/x5f/x5f/x00/x5f/x4a/x76/x5f/x52/x65/x67/x69"
        "/x73/x74/x65/x72/x43/x6c/x61/x73/x73/x65/x73/x00/x5f/x66/x70/x5f"
        "/x68/x77/x00/x5f/x66/x69/x6e/x69/x00/x5f/x5f/x6c/x69/x62/x63/x5f"
        "/x73/x74/x61/x72/x74/x5f/x6d/x61/x69/x6e/x40/x40/x47/x4c/x49/x42"
        "/x43/x5f/x32/x2e/x30/x00/x5f/x49/x4f/x5f/x73/x74/x64/x69/x6e/x5f"
        "/x75/x73/x65/x64/x00/x5f/x5f/x64/x61/x74/x61/x5f/x73/x74/x61/x72"
        "/x74/x00/x5f/x5f/x64/x73/x6f/x5f/x68/x61/x6e/x64/x6c/x65/x00/x5f"
        "/x5f/x44/x54/x4f/x52/x5f/x45/x4e/x44/x5f/x5f/x00/x5f/x5f/x6c/x69"
        "/x62/x63/x5f/x63/x73/x75/x5f/x69/x6e/x69/x74/x00/x70/x72/x69/x6e"
        "/x74/x66/x40/x40/x47/x4c/x49/x42/x43/x5f/x32/x2e/x30/x00/x5f/x5f"
        "/x62/x73/x73/x5f/x73/x74/x61/x72/x74/x00/x5f/x65/x6e/x64/x00/x70"
        "/x75/x74/x73/x40/x40/x47/x4c/x49/x42/x43/x5f/x32/x2e/x30/x00/x5f"
        "/x65/x64/x61/x74/x61/x00/x5f/x5f/x69/x36/x38/x36/x2e/x67/x65/x74"
        "/x5f/x70/x63/x5f/x74/x68/x75/x6e/x6b/x2e/x62/x78/x00/x6d/x61/x69"
        "/x6e/x00/x5f/x69/x6e/x69/x74/x00"
        ;

const int test_size = 5320;
非常适用于根据原始数据批量生成相应的字符数组
*/
#include <stdio.h>

int main(int argc, char *argv[])
{
 int ch, total=0;

 if (argc > 1)
  printf("const char %s[] %s=/n",
   argv[1], argc > 2 ? argv[2] : "");

 do {
  printf("/t/"");
  while ((ch = getchar()) != EOF)
  {
   total++;
   printf("
//x%02x",ch);
   if (total % 16 == 0)//每行显示16个字符
    break;
  }
  printf("/"/n");
 } while (ch != EOF);

 if (argc > 1)
  printf("/t;/n/nconst int %s_size = %d;/n", argv[1], total);

 return 0;
}

App threw an error during load Error: Cannot find module './ble-service.js' Require stack: - /home/yd/yd/electron-app/out/main/index.js - /home/yd/yd/electron-app/node_modules/electron/dist/resources/default_app.asar/main.js - at Module._resolveFilename (node:internal/modules/cjs/loader:1054:15) at n._resolveFilename (node:electron/js2c/browser_init:2:110036) at Module._load (node:internal/modules/cjs/loader:900:27) at f._load (node:electron/js2c/asar_bundle:2:13377) at Module.require (node:internal/modules/cjs/loader:1120:19) at require (node:internal/modules/cjs/helpers:103:18) at Module.<anonymous> (/home/yd/yd/electron-app/out/main/index.js:8:20) at Module._compile (node:internal/modules/cjs/loader:1241:14) at Module._extensions..js (node:internal/modules/cjs/loader:1296:10) at Module.load (node:internal/modules/cjs/loader:1096:32) A JavaScript error occurred in the main process Uncaught Exception: Error: Cannot find module './ble-service.js' Require stack: - /home/yd/yd/electron-app/out/main/index.js - /home/yd/yd/electron-app/node_modules/electron/dist/resources/default_app.asar/main.js - at Module._resolveFilename (node:internal/modules/cjs/loader:1054:15) at n._resolveFilename (node:electron/js2c/browser_init:2:110036) at Module._load (node:internal/modules/cjs/loader:900:27) at f._load (node:electron/js2c/asar_bundle:2:13377) at Module.require (node:internal/modules/cjs/loader:1120:19) at require (node:internal/modules/cjs/helpers:103:18) at Module.<anonymous> (/home/yd/yd/electron-app/out/main/index.js:8:20) at Module._compile (node:internal/modules/cjs/loader:1241:14) at Module._extensions..js (node:internal/modules/cjs/loader:1296:10) at Module.load (node:internal/modules/cjs/loader:1096:32) /snap/core20/current/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /lib/x86_64-linux-gnu/libproxy.so.1) Failed to load module: /home/yd/snap/code/common/.cache/gio-modules/libgiolibproxy.so 这是什么问题
最新发布
09-03
Using cached https://mirrors.ustc.edu.cn/pypi/packages/62/a1/3d680cbfd5f4b8f15abc1d571870c5fc3e594bb582bc3b64ea099db13e56/jinja2-3.1.6-py3-none-any.whl (134 kB) Collecting fsspec (from torch==2.1.0) Using cached https://mirrors.ustc.edu.cn/pypi/packages/44/4b/e0cfc1a6f17e990f3e64b7d941ddc4acdc7b19d6edd51abf495f32b1a9e4/fsspec-2025.3.2-py3-none-any.whl (194 kB) Collecting numpy (from torchvision==0.16.0) Using cached https://mirrors.ustc.edu.cn/pypi/packages/b6/f5/467ca8675c7e6c567f571d8db942cc10a87588bd9e20a909d8af4171edda/numpy-2.2.5-cp310-cp310-win_amd64.whl (12.9 MB) Collecting requests (from torchvision==0.16.0) Using cached https://mirrors.ustc.edu.cn/pypi/packages/f9/9b/335f9764261e915ed497fcdeb11df5dfd6f7bf257d4a6a2a686d80da4d54/requests-2.32.3-py3-none-any.whl (64 kB) Collecting pillow!=8.3.*,>=5.3.0 (from torchvision==0.16.0) Using cached https://mirrors.ustc.edu.cn/pypi/packages/ed/3c/9831da3edea527c2ed9a09f31a2c04e77cd705847f13b69ca60269eec370/pillow-11.2.1-cp310-cp310-win_amd64.whl (2.7 MB) Collecting MarkupSafe>=2.0 (from jinja2->torch==2.1.0) Using cached https://mirrors.ustc.edu.cn/pypi/packages/44/06/e7175d06dd6e9172d4a69a72592cb3f7a996a9c396eee29082826449bbc3/MarkupSafe-3.0.2-cp310-cp310-win_amd64.whl (15 kB) Collecting charset-normalizer<4,>=2 (from requests->torchvision==0.16.0) Using cached https://mirrors.ustc.edu.cn/pypi/packages/7d/d7/96970afb4fb66497a40761cdf7bd4f6fca0fc7bafde3a84f836c1f57a926/charset_normalizer-3.4.2-cp310-cp310-win_amd64.whl (105 kB) Collecting idna<4,>=2.5 (from requests->torchvision==0.16.0) Using cached https://mirrors.ustc.edu.cn/pypi/packages/76/c6/c88e154df9c4e1a2a66ccf0005a88dfb2650c1dffb6f5ce603dfbd452ce3/idna-3.10-py3-none-any.whl (70 kB) Collecting urllib3<3,>=1.21.1 (from requests->torchvision==0.16.0) Using cached https://mirrors.ustc.edu.cn/pypi/packages/6b/11/cc635220681e93a0183390e26485430ca2c7b5f9d33b15c74c2861cb8091/urllib3-2.4.0-py3-none-any.whl (128 kB) Collecting certifi>=2017.4.17 (from requests->torchvision==0.16.0) Using cached https://mirrors.ustc.edu.cn/pypi/packages/4a/7e/3db2bd1b1f9e95f7cddca6d6e75e2f2bd9f51b1246e546d88addca0106bd/certifi-2025.4.26-py3-none-any.whl (159 kB) Collecting mpmath<1.4,>=1.1.0 (from sympy->torch==2.1.0) Using cached https://mirrors.ustc.edu.cn/pypi/packages/43/e3/7d92a15f894aa0c9c4b49b8ee9ac9850d6e63b03c9c32c0367a13ae62209/mpmath-1.3.0-py3-none-any.whl (536 kB) Installing collected packages: mpmath, urllib3, typing-extensions, sympy, pillow, numpy, networkx, MarkupSafe, idna, fsspec, filelock, charset-normalizer, certifi, requests, jinja2, torch, torchvision, torchaudio Successfully installed MarkupSafe-3.0.2 certifi-2025.4.26 charset-normalizer-3.4.2 filelock-3.18.0 fsspec-2025.3.2 idna-3.10 jinja2-3.1.6 mpmath-1.3.0 networkx-3.4.2 numpy-2.2.5 pillow-11.2.1 requests-2.32.3 sympy-1.14.0 torch-2.1.0 torchaudio-2.1.0 torchvision-0.16.0 typing-extensions-4.13.2 urllib3-2.4.0
05-13
(hyte) root@autodl-container-e82a43b255-08b2c8d6:~/autodl-tmp/HyTE# pip install -r requirements.txt Collecting tensorflow==1.8.0 (from -r requirements.txt (line 1)) Cache entry deserialization failed, entry ignored Using cached https://pypi.tuna.tsinghua.edu.cn/packages/22/c6/d08f7c549330c2acc1b18b5c1f0f8d9d2af92f54d56861f331f372731671/tensorflow-1.8.0-cp36-cp36m-manylinux1_x86_64.whl Collecting requests>=2.20.0 (from -r requirements.txt (line 2)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/2d/61/08076519c80041bc0ffa1a8af0cbd3bf3e2b62af10435d269a9d0f40564d/requests-2.27.1-py2.py3-none-any.whl Collecting scipy==1.0.0 (from -r requirements.txt (line 3)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d8/5e/caa01ba7be11600b6a9d39265440d7b3be3d69206da887c42bef049521f2/scipy-1.0.0-cp36-cp36m-manylinux1_x86_64.whl Collecting numpy==1.14.3 (from -r requirements.txt (line 4)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/71/90/ca61e203e0080a8cef7ac21eca199829fa8d997f7c4da3e985b49d0a107d/numpy-1.14.3-cp36-cp36m-manylinux1_x86_64.whl Collecting scikit_learn==0.19.1 (from -r requirements.txt (line 5)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/3d/2d/9fbc7baa5f44bc9e88ffb7ed32721b879bfa416573e85031e16f52569bc9/scikit_learn-0.19.1-cp36-cp36m-manylinux1_x86_64.whl Collecting pandas==0.24.2 (from -r requirements.txt (line 6)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/19/74/e50234bc82c553fecdbd566d8650801e3fe2d6d8c8d940638e3d8a7c5522/pandas-0.24.2-cp36-cp36m-manylinux1_x86_64.whl Collecting grpcio>=1.8.6 (from tensorflow==1.8.0->-r requirements.txt (line 1)) Downloading https://pypi.tuna.tsinghua.edu.cn/packages/81/9a/6b33e8d15850356772f0ee6489bc8346a7aa90f0c86733283e139740865e/grpcio-1.48.2.tar.gz (22.0MB) 100% |████████████████████████████████| 22.0MB 21kB/s Collecting six>=1.10.0 (from tensorflow==1.8.0->-r requirements.txt (line 1)) Downloading https://pypi.tuna.tsinghua.edu.cn/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl Collecting protobuf>=3.4.0 (from tensorflow==1.8.0->-r requirements.txt (line 1)) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/6c/be/4e32d02bf08b8f76bf6e59f2a531690c1e4264530404501f3489ca975d9a/protobuf-4.21.0-py2.py3-none-any.whl protobuf requires Python '>=3.7' but the running Python is 3.6.13 tensorflow1.8.0要求python为3.6,但是protobuf要求python>=3.7
07-22
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值