String类型的初始化方式与C++中的构造函数类似: String randomString(charArray); String构造函数有多种重载方式,包括字符集合。 文档: http://arduino.cc/en/Reference/string