diff --git a/README.md b/README.md index 2b9d359..12fdfbd 100644 --- a/README.md +++ b/README.md @@ -282,15 +282,15 @@ True ``` ```text -+--------------------+----------+----------+------+---------+--------+ -| | Integral | Rational | Real | Complex | Number | -+--------------------+----------+----------+------+---------+--------+ -| int | yes | yes | yes | yes | yes | -| fractions.Fraction | | yes | yes | yes | yes | -| float | | | yes | yes | yes | -| complex | | | | yes | yes | -| decimal.Decimal | | | | | yes | -+--------------------+----------+----------+------+---------+--------+ ++--------------------+----------+----------+--------+---------+--------+ +| | Integral | Rational | Real | Complex | Number | ++--------------------+----------+----------+--------+---------+--------+ +| int | yes | yes | yes | yes | yes | +| fractions.Fraction | | yes | yes | yes | yes | +| float | | | yes | yes | yes | +| complex | | | | yes | yes | +| decimal.Decimal | | | | | yes | ++--------------------+----------+----------+--------+---------+--------+ ``` diff --git a/index.html b/index.html index 6d8be81..d37e0cc 100644 --- a/index.html +++ b/index.html @@ -404,15 +404,15 @@ to_exclusive = <range>.stop 123, Number) True -
isinstance(+--------------------+----------+----------+------+---------+--------+
-| | Integral | Rational | Real | Complex | Number |
-+--------------------+----------+----------+------+---------+--------+
-| int | yes | yes | yes | yes | yes |
-| fractions.Fraction | | yes | yes | yes | yes |
-| float | | | yes | yes | yes |
-| complex | | | | yes | yes |
-| decimal.Decimal | | | | | yes |
-+--------------------+----------+----------+------+---------+--------+
++--------------------+----------+----------+--------+---------+--------+
+| | Integral | Rational | Real | Complex | Number |
++--------------------+----------+----------+--------+---------+--------+
+| int | yes | yes | yes | yes | yes |
+| fractions.Fraction | | yes | yes | yes | yes |
+| float | | | yes | yes | yes |
+| complex | | | | yes | yes |
+| decimal.Decimal | | | | | yes |
++--------------------+----------+----------+--------+---------+--------+
#String
<str> = <str>.strip() # Strips all whitespace characters from both ends.
<str> = <str>.strip('<chars>') # Strips all passed characters from both ends.
diff --git a/web/script_2.js b/web/script_2.js
index cfc9939..b718abe 100644
--- a/web/script_2.js
+++ b/web/script_2.js
@@ -47,22 +47,22 @@ const DIAGRAM_3_B =
'┗━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━┛\n';
const DIAGRAM_4_A =
- '+--------------------+----------+----------+------+---------+--------+\n' +
- '| | Integral | Rational | Real | Complex | Number |\n' +
- '+--------------------+----------+----------+------+---------+--------+\n';
+ '+--------------------+----------+----------+--------+---------+--------+\n' +
+ '| | Integral | Rational | Real | Complex | Number |\n' +
+ '+--------------------+----------+----------+--------+---------+--------+\n';
const DIAGRAM_4_B =
- '┏━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━┯━━━━━━━━━┯━━━━━━━━┓\n' +
- '┃ │ Integral │ Rational │ Real │ Complex │ Number ┃\n' +
- '┠────────────────────┼──────────┼──────────┼──────┼─────────┼────────┨\n' +
- '┃ int │ ✓ │ ✓ │ ✓ │ ✓ │ ✓ ┃\n' +
- '┃ fractions.Fraction │ │ ✓ │ ✓ │ ✓ │ ✓ ┃\n' +
- '┃ float │ │ │ ✓ │ ✓ │ ✓ ┃\n' +
- '┃ complex │ │ │ │ ✓ │ ✓ ┃\n' +
- '┃ decimal.Decimal │ │ │ │ │ ✓ ┃\n' +
- '┗━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━┷━━━━━━━━━┷━━━━━━━━┛\n';
-
-const DIAGRAM_5_A =
+ '┏━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━┯━━━━━━━━━┯━━━━━━━━┓\n' +
+ '┃ │ Integral │ Rational │ Real │ Complex │ Number ┃\n' +
+ '┠────────────────────┼──────────┼──────────┼────────┼─────────┼────────┨\n' +
+ '┃ int │ ✓ │ ✓ │ ✓ │ ✓ │ ✓ ┃\n' +
+ '┃ fractions.Fraction │ │ ✓ │ ✓ │ ✓ │ ✓ ┃\n' +
+ '┃ float │ │ │ ✓ │ ✓ │ ✓ ┃\n' +
+ '┃ complex │ │ │ │ ✓ │ ✓ ┃\n' +
+ '┃ decimal.Decimal │ │ │ │ │ ✓ ┃\n' +
+ '┗━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━┷━━━━━━━━━┷━━━━━━━━┛\n';
+
+const DIAGRAM_5_A =
"+----------------+----------------+---------------+----------------+-----------------+\n" +
"| | {} | {:f} | {:e} | {:%} |\n" +
"+----------------+----------------+---------------+----------------+-----------------+\n";