使用自定义类捕获 Python 控制台输出 - Capturing Console Output in Python Using Custom Class
发表于 - Posted on
编辑于 - Edited on
字数 - Word count:
273
阅读时间 - Reading time ≈
1 mins.
在python中,当执行一段代码时,如果想要获取这段代码输出到控制台的信息的话,可以使用重定向stdout的方法。
In Python, if you want to capture the information output to the console when executing a piece of code, you can use the method of redirecting stdout.
In Python, if you want to capture the information output to the console when executing a piece of code, you can use the method of redirecting stdout.
在Python中模拟程序重启 - Simulating Program Restart in Python
发表于 - Posted on
编辑于 - Edited on
字数 - Word count:
362
阅读时间 - Reading time ≈
1 mins.
在编写Tennisbot的主程序时,总是需要使其重启。Python中,可以使用以下命令模拟重启效果。
When writing the main program for Tennisbot, it always needs to be restarted. The following command can be used in Python to simulate a restart effect.
When writing the main program for Tennisbot, it always needs to be restarted. The following command can be used in Python to simulate a restart effect.
有国才有家?——读bbc关于朝鲜的采访有感 - Only With a Country, Can There be a Home? — Reflections on BBC's Interview About North Korea
发表于 - Posted on
编辑于 - Edited on
字数 - Word count:
797
阅读时间 - Reading time ≈
3 mins.
最后感慨一句,从来不是哪里有压迫,哪里就有反抗。压迫的强度太大,人们可能会不敢反抗。压迫的时间太久,这个民族,恐怕就会失去反抗的本能。
Finally, I would like to reflect that it's not always true that where there is oppression, there will be resistance. If the intensity of oppression is too high, people may not dare to resist. And if the oppression lasts too long, the nation, I fear, may lose its instinct to resist.
Finally, I would like to reflect that it's not always true that where there is oppression, there will be resistance. If the intensity of oppression is too high, people may not dare to resist. And if the oppression lasts too long, the nation, I fear, may lose its instinct to resist.
SD WebUI 2: 如何设置Stable Diffusion WebUI? - SD WebUI 2: How to set Stable Diffusion WebUI?
发表于 - Posted on
编辑于 - Edited on
系列 - Series
SD WebUI
字数 - Word count:
520
阅读时间 - Reading time ≈
2 mins.
SD WebUI 1: 如何安装Stable Diffusion WebUI? - SD WebUI 1: How to install Stable Diffusion WebUI?
发表于 - Posted on
编辑于 - Edited on
系列 - Series
SD WebUI
字数 - Word count:
714
阅读时间 - Reading time ≈
3 mins.
如何在《1984》这样的极权世界里尽可能好地生活? - How to live the best possible life in a totalitarian world like "1984"?
发表于 - Posted on
编辑于 - Edited on
字数 - Word count:
2.7k
阅读时间 - Reading time ≈
10 mins.
假设我们生活在《1984》里的世界里。
Imagine living in the world of "1984".
Imagine living in the world of "1984".
实验:如何判断报道的事故死亡人数是否被大量修改? - Experiment: How to judge whether the reported accident fatalities have been substantially modified?
发表于 - Posted on
编辑于 - Edited on
字数 - Word count:
429
阅读时间 - Reading time ≈
2 mins.
从图中可以看出,从2016年到2021年,橙色线与红色线左右的事故发生频数差不多,符合指数分布。这说明从2016年到2021年,死亡人数未被大量修改。
It can be seen from the figure that from 2016 to 2021, the frequency of accidents around the orange line and the red line is similar, which conforms to the exponential distribution. This illustrates that the death toll has not been substantially revised from 2016 to 2021.
It can be seen from the figure that from 2016 to 2021, the frequency of accidents around the orange line and the red line is similar, which conforms to the exponential distribution. This illustrates that the death toll has not been substantially revised from 2016 to 2021.
聊聊价值观茧房 - Discussion on the filter bubble of values
发表于 - Posted on
编辑于 - Edited on
字数 - Word count:
2.5k
阅读时间 - Reading time ≈
9 mins.
...所以,爱和正义拯救不了世界,文明和法治才可以。手动呲牙。
... Therefore, love and justice cannot save the world, but civilization and the rule of law can, lol.
... Therefore, love and justice cannot save the world, but civilization and the rule of law can, lol.
聊聊带节奏与独立思考 - Discussion on stirring up and thinking independently
发表于 - Posted on
编辑于 - Edited on
字数 - Word count:
1.6k
阅读时间 - Reading time ≈
6 mins.
一年以来,我一直关注一个推主:多伦多方脸。我感觉他比较喜欢带节奏。
For a year now, I've been following one tweeter Torontobigface. I feel like he likes to stir up.
For a year now, I've been following one tweeter Torontobigface. I feel like he likes to stir up.