Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности
|
|
|
Помогите с тестовым заданием
|
|||
|---|---|---|---|
|
#18+
Выскажите ваше мнение, у меня нет предположений -( Q: how do you make a variables only accessible within a function but cause the value to persist across calls to that function Answer: 1) Add a positional argument, with an empty tuple as default value, to the end of the argument list 2) Encapsulate access to the variable within set_x() and get_y() functions 3) Create a global variable at the veginning of the module and add the private declaration to that variable within the function 4) Create a global variable at the beginning of the module and add the "static" declaration to that variable within the function 5) Add the keyword argument, with a mutable a default value to the end of the function parameret list ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2018, 19:15 |
|
||
|
Помогите с тестовым заданием
|
|||
|---|---|---|---|
|
#18+
в PHP в функции к переменной добавляется модификатор static и тогда при след. вызове функции в переменной будет то значение, которое было при выходе из функции ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 08.04.2018, 22:17 |
|
||
|
|

start [/forum/topic.php?fid=23&msg=39627307&tid=1460316]: |
0ms |
get settings: |
8ms |
get forum list: |
11ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
16ms |
get topic data: |
6ms |
get forum data: |
2ms |
get page messages: |
30ms |
get tp. blocked users: |
1ms |
| others: | 221ms |
| total: | 299ms |

| 0 / 0 |
