Flask Documentation (1.1.x)
@app.template_test() def is_prime(n): if n == 2: return True for i in range(2, int(math.ceil(math.sqrt(n))) + 1): if n % i == 0: return False return True Changelog name0 码力 | 428 页 | 895.98 KB | 1 年前3Flask Documentation (1.1.x)
Example: @app.template_test() def is_prime(n): if n == 2: return True for i in range(2, int(math.ceil(math.sqrt(n))) + 1): if n % i == 0: return False return True New in version 0.10. Parameters0 码力 | 291 页 | 1.25 MB | 1 年前3
共 2 条
- 1
相关搜索词