Move gold samples under tests/, put executable user docs in public/, restyle view, and add catalog plus gh-pages publish workflow. Co-authored-by: Cursor <cursoragent@cursor.com>
24 lines
332 B
Markdown
24 lines
332 B
Markdown
---
|
|
title: 布尔与逻辑
|
|
description: True / False / None 与 and / or / not
|
|
---
|
|
|
|
# main
|
|
|
|
关键字:`True`、`False`、`None`,以及 `and` / `or` / `not`。
|
|
|
|
*`a` = True*
|
|
*`b` = False*
|
|
|
|
+ `a` and not `b`
|
|
> print text=ok
|
|
+ *
|
|
> print text=fail
|
|
|
|
*`probe` = 1*
|
|
|
|
+ None
|
|
> print text=none-truthy
|
|
+ *
|
|
> print text=none-falsy
|