摘要:
三种实现的对比: (1)纯python x.py def is_prime(num): for j in range(2, num): if (num%j)==0: return False return True import time a = time.time() for i in range 阅读全文
2024年7月30日
摘要:
test.pyx文件: from cython.parallel cimport parallel from openmp cimport omp_get_thread_num cpdef void long_running_task1() noexcept nogil: while True: p 阅读全文
摘要:
相关: https://www.youtube.com/watch?v=7wcc1GCG1Ic 阅读全文
摘要:
代码: import line_profiler import sys def test(): for i in range(0, 10): print( i**2 ) print("End of the function") prof = line_profiler.LineProfiler(te 阅读全文
摘要:
代码: (1) import cProfile import re cProfile.run('re.compile("foo|bar")') 运行结果: (2) import cProfile def runRe(): import re cProfile.runctx('re.compile(" 阅读全文
2024年7月29日
摘要:
相关: https://baijiahao.baidu.com/s?id=1805883913321425591 阅读全文
摘要:
一直有个疑问,那就是网站如何赚广告费? 发现了一个讲解: 博客站对接百度广告推广,一个月后的收入 阅读全文
2024年7月28日
摘要:
树莓派3b+的屏幕本身就是倒置的,因此为了使树莓派在官方屏幕下能显示正常的屏幕画面因此需要通过设置把树莓派的官方屏幕的输出倒置一下,这样树莓派的官方屏幕的输出就是正常的了。 解决方法:(源自:https://blog.csdn.net/t13506920069/article/details/121 阅读全文
摘要:
NAS局域网,使用的路由器的有线端口为1000Mbps,无线WiFi速率860Mbps,不过由于不知道是不是因为电脑WiFi接收器型号老旧还是路由器WiFi协议或天线老旧(电脑和路由器均不支持WiFi6),总之电脑和路由器之间的WiFi信号传输速率大约400Mbps,也就是说电脑使用WiFi连接路由 阅读全文
摘要:
地址: https://www.mercurycom.com.cn/product-465-0.html 阅读全文