vue中<router-view>使用详解
pyinstaller:
```python
from time import time as ti
from functools import wraps as wr
L_DT = 512
def timer(func):
@wr(func)
def wrapper(*args, **kwargs):
start_time = ti()
result = func(*args, **kwargs)
end_time = ti()
print(f'{end_time - start_time:.8f} s')
return result
return wrapper
@timer
def interp(code):
global L_DT
data = [0 for i in range(L_DT)]
pc = 0
ptr = 0
skip_loop = False
bracket_count = 0
stack = []
while pc < len(code):
c = code[pc]
if skip_loop:
if c == '[':
bracket_count += 1
elif c==']':
bracket_count -= 1
if bracket_count == 0:
skip_loop = False
pc += 1
continue
if c == '>':
if ptr == L_DT:
ptr = 0
else:
ptr += 1
pc += 1
elif c == '<':
if ptr == -1:
ptr = 0
else:
ptr -= 1
pc += 1
elif c == '+':
if data[ptr] == 255:
data[ptr] = 0
else:
data[ptr] += 1
pc += 1
elif c == '-':
if data[ptr] == 0:
data[ptr] = 255
else:
data[ptr] -= 1
pc += 1
elif c == '.':
print(chr(data[ptr]), end='')
pc += 1
elif c == ',':
while len(char := input('\n $ ')) != 1 or ord(char) >= 256:
char = input('\n$$ ')
else:
data[ptr] = ord(char)
pc += 1
elif c == '[':
if data[ptr] == 0:
bracket_count = 1
skip_loop = True
pc += 1
else:
pc += 1
stack.append(pc)
elif c == ']':
if data[ptr] == 0:
pc+=1
stack.pop()
else:
pc = stack[len(stack)-1]
else:
pc += 1
print(f'''\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━
pc ╍╍╍╍╍╍╍╍╍╍╍╍╍ {pc}
data[ptr] ╍╍╍╍╍ {data[ptr]}
ptr ╍╍╍╍╍╍╍╍╍╍╍╍ {ptr}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n''')
# ┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
interp('''
++++++++
[
>++++
[
>++>+++>+++>+<<<<-
]
>+>+>->>+
[
<
]<-
]
>>.
>---.
+++++++..
+++.
>>.
<-.
<.
+++.
------.
--------.
>>+.
>++.
''')
```