mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 12:00:18 +00:00
...
This commit is contained in:
parent
36aa0e1877
commit
8aa34f2d6e
@ -11,21 +11,8 @@ r.shuffle(a)
|
|||||||
r.choice(a)
|
r.choice(a)
|
||||||
r.choice(b)
|
r.choice(b)
|
||||||
|
|
||||||
# from sys import version as v
|
assert 0.0 <= r.random() <= 1.0
|
||||||
|
|
||||||
# assert type(v) is str
|
r.seed(10)
|
||||||
|
assert r.randint(1, 1000) == 266
|
||||||
# class Context:
|
assert r.randint(1, 1000) == 126
|
||||||
# def __init__(self):
|
|
||||||
# self.x = 0
|
|
||||||
|
|
||||||
# def __enter__(self):
|
|
||||||
# self.x = 1
|
|
||||||
|
|
||||||
# def __exit__(self):
|
|
||||||
# self.x = 2
|
|
||||||
|
|
||||||
# with Context() as c:
|
|
||||||
# assert c.x == 1
|
|
||||||
|
|
||||||
# assert c.x == 2
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user