async def send_message(channel_id: int, list): global send_value, Bots for j in range(10): media = types.MediaGroup() len_send = [media.attach_photo(i) for i in list[:10]] try: await Bots[j].send_media_group(channel_id, media) send_value += len(len_send) list = list[10:] except Exception as e: print(f"Ошибка отправки медиа группы (=ʘᆽʘ=): {str(e)}") for image_url in list[:10]: try: await Bots[j].send_photo(channel_id, image_url) send_value += 1 list = list[1:] await asyncio.sleep(3) except Exception as e: list = list[1:] print(f"Ошибка отправки изображения (=ಠᆽಠ=): {image_url}") print(str(e)) await asyncio.sleep(3) print(send_value) await asyncio.sleep(15) # точное время не изветсно
#include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { char buf[256]; char buf_out[256]; char* tmp; printf("Введите строку: "); fgets(buf, 256, stdin); strncpy(buf_out, buf, 256); tmp = strtok(buf, " "); while (tmp != NULL) { printf("%s\n", tmp); tmp = strtok(NULL, " "); } printf("\nПреобразованная строка:\n"); strncpy(buf, buf_out, 256); tmp = strtok(buf, " "); tmp = strtok(NULL, " "); while (tmp != NULL) { printf("%s ", tmp); tmp = str