string a = 10 67 65 83 67 65 68 69 32 84 111 112 111 108 111 103 121 32 86 49 44 32 40 99 41 32 77 97 116 114 97 45 68 97 116 97 118 105 115 105 111 110 ;
字符串a不定长。
将字符串a存到byte [] b数组中,使得b[1] = 10;b[2] = 67;b[3]......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Q753065
{
class Program
{
static void Main(string[] args)
{
string a = "10 67 65 83 67 65 68 69 32 84 111 112 111 108 111 103 121 32 86 49 44 32 40 99 41 32 77 97 116 114 97 45 68 97 116 97 118 105 115 105 111 110";
byte[] arr = a.Split(' ').Select(x => byte.Parse(x)).ToArray();
}
}
}