2022-07-07 18:28:29 +08:00
|
|
|
# -------------------------------
|
|
|
|
# Difficult Rocket
|
|
|
|
# Copyright © 2021-2022 by shenjackyuanjie 3695888@qq.com
|
|
|
|
# All rights reserved
|
|
|
|
# -------------------------------
|
2022-07-16 20:20:23 +08:00
|
|
|
import timeit
|
|
|
|
import time
|
2022-07-07 18:28:29 +08:00
|
|
|
from build import pycprint
|
|
|
|
|
2022-07-09 11:57:00 +08:00
|
|
|
|
2022-07-16 20:20:23 +08:00
|
|
|
time.sleep(1)
|
|
|
|
cpyprint = timeit.timeit('pycprint.print("啊啊")', number=100000, globals=globals())
|
|
|
|
pyprint = timeit.timeit('print("啊啊")', number=100000, globals=globals())
|
|
|
|
|
|
|
|
print(cpyprint, pyprint, pyprint - cpyprint)
|
|
|
|
time.sleep(10)
|
|
|
|
|
|
|
|
pycprint.print("a啊 a\n")
|
|
|
|
pycprint.print("a啊采购好难过 a\n")
|
|
|
|
print()
|
|
|
|
#
|
2022-07-09 11:57:00 +08:00
|
|
|
pycprint.printf("a啊a\n", "aaa", "aaa", end='')
|
|
|
|
|
|
|
|
print()
|
|
|
|
|
|
|
|
pycprint.printf()
|
|
|
|
|
|
|
|
pycprint.printf("aaa\n", "aaa", "aaa")
|