L
L
lacassadepapel2022-04-21 00:00:34
Python
lacassadepapel, 2022-04-21 00:00:34

How to write a program that will create a file and work as a "journal" in which you can enter new data and save them one by one?

Need to write, open a file, then write (), and close it?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
V
Vindicar, 2022-04-21
@Vindicar

If you need to append data to a file, then yes, just open the file with "a" mode.

S
Sergey Gornostaev, 2022-04-21
@sergey-gornostaev

As with any other program, you need to start by decomposing the problem.

S
sergey, 2016-10-15
@VoxelGod

jsfiddle
сделал на ходу, просто в коде, где иконка лупы,

.search__submit {
background: url("./иконка лупы") 0 0 no-repeat;

поставьте путь к вашей иконке с лупой - и вуаля.

I
iBird Rose, 2016-10-15
@iiiBird Куратор тега CSS

всмылсе? зачем тебе placeholder справа? там обычная кнопка поиска стилизованная также как сам инпут и без бордера слева

G
good project, 2016-10-15
@GoodProject

In one of my projects, the icon is displayed through the background-image of the input , there are a lot of options for how to do this, the same label or through the :after pseudo-element of the input , but through bgi it is faster, + you need to position it through bg-position .
Example:
9afc6a7296304fbaa6f888f1db417858.jpegbackground-image: url(../img/search_icon.png);
background-repeat: no-repeat;
background-position: 170px 7px;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question