/
ilya.petrash
/
SimplePyScripts
Обзор
Документация
Войти
/
ilya.petrash
/
SimplePyScripts
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
0.0.0
profile__example.py
31 строка
493 B
ipetrash
Append profile__example.py
09 янв 2018, 02:19
09 янв 2018, 02:19
f1b536e
Код
Авторство
О чём код?
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' # LOOK: 1000 0.016 0.000 0.016 0.000 profile__example.py:14(_has) def foo(number=100): def _inc_i(): nonlocal i i += 1 def _has(value, items): return value in items items = ['1234567890' for _ in range(number)] print(items) i = 0 for i in range(number): _inc_i() _has('5', items) print(i) import profile profile.run(r'foo(1000)')