ANTICHAT

ANTICHAT (https://forum.antichat.xyz/index.php)
-   Общие вопросы программирования (https://forum.antichat.xyz/forumdisplay.php?f=206)
-   -   помогите с кодом (https://forum.antichat.xyz/showthread.php?t=1491059)

TopCarl 07.10.2023 00:28

Помогите с кодом, выбивает ошибку (TypeError: expected str, bytes or os.PathLike object, not tuple) на 3 строке

Python:





Код:

elif
select
==
'1'
:
from
mail
import
get_mail
    text_file
=
'Akum.csv'
,
'BP1.csv'
search_value
=
input
(
f'{COLOR_CODE["YELLOW"]}[@]Введите почту:'
)
get_mail
(
text_file
,
search_value
)


MrDorlik 07.10.2023 00:32

ну ты объявил кортеж, тебе написали кортеж нельзя, можно только строку, в чем вопрос

Python:





Код:

elif
select
==
'1'
:
from
mail
import
get_mail
    text_file
=
[
'Akum.csv'
,
'BP1.csv'
]
search_value
=
input
(
f'{COLOR_CODE["YELLOW"]}[@]Введите почту:'
)
for
file
in
text_file
:
get_mail
(
file
,
search_value
)



Время: 14:15