如何用模拟代替def find_max_letter(a):
nums = []
for i in a:
nums.append(i[1])
# you can also create this with list-comprehension: nums = [i[1] for i in list]
max_num = max(nums)
for i in a[::-1]:
if max_num == i[1]:
return i[0]
中的sendMessageService
?
控制器
CreateVacationCest
最佳班次
class BotController extends Controller
{
private $sendMessageService;
public function __construct(SendMessageService $sendMessageService)
{
$this->sendMessageService = $sendMessageService;
}
}