Why I am called KookyC? It main that Kooky Coder(古怪的程序员,疯颠颠程序员), I'm almost crazy about my love for coding, and I am truly a kooky person.
class KookyC {
readonly me: string = "A Kooky Person";
personalityNow: string = "I don't know";
private readonly ccw: string = "Don't telling you, lololo.";
constructor() {
console.error("Don't ask me who am I !!!!");
}
getStatus(): string {
return `I am ${this.me}, and right now I feel ${this.personalityNow}.`;
}
}
export default KookyC;# include <iostream>
# include <string>
class KookyC{
public:
std::string me;
std::string cant;
int age;
void introduction() {
me = "A kooky person";
cant = "I am not good at interpersonal communication";
age = 15;
}
};
int main(){
KookyC i;
i.introduction();
std::cout<<"who am I: "<<i.me<<"\n"<<"I can't: "<<i.cant<<"\n"<<"How old am I: "<<i.age;
return 0;
}import this # 恶搞一下
import tkinter as tk
pseudonym = "𝓚𝓸𝓸𝓴𝔂𝓒蓝羽"
hobby = {"programming": 10, "recitation": 10, "3D modeling": 7}
tv_program = ["Doctor Who", "Murder Drone", "JoJo的奇妙冒险?"]
tech_stack = {"Py": 10, "js": 9, "C++": 5, "JAVA": 3, "C#": 3, "C": 2}
root = tk.Tk()
root.title("information")
root.geometry("500x400")
root.config(bg="#87CEEB")
bg_color = "#87CEEB"
title_label = tk.Label(root, text="📋 个人信息卡片", font=("微软雅黑", 18, "bold"),
bg=bg_color, fg="white")
title_label.grid(row=0, column=0, columnspan=2, pady=15)
tk.Label(root, text="昵称:", font=("微软雅黑", 12), bg=bg_color, fg="white").grid(row=1, column=0, sticky="e", padx=10, pady=5)
tk.Label(root, text=pseudonym, font=("微软雅黑", 12, "bold"), bg=bg_color, fg="#1a237e").grid(row=1, column=1, sticky="w", padx=10, pady=5)
tk.Label(root, text="技能栈:", font=("微软雅黑", 12), bg=bg_color, fg="white").grid(row=2, column=0, sticky="ne", padx=10, pady=5)
skill_frame = tk.Frame(root, bg=bg_color)
skill_frame.grid(row=2, column=1, sticky="w", padx=10, pady=5)
skill_text = ", ".join([f"{k} ({v}/10)" for k, v in tech_stack.items()])
tk.Label(skill_frame, text=skill_text, font=("微软雅黑", 10), bg=bg_color, fg="#1a237e", wraplength=300, justify="left").pack()
tk.Label(root, text="爱好:", font=("微软雅黑", 12), bg=bg_color, fg="white").grid(row=3, column=0, sticky="ne", padx=10, pady=5)
hobby_frame = tk.Frame(root, bg=bg_color)
hobby_frame.grid(row=3, column=1, sticky="w", padx=10, pady=5)
def hobby_level(score):
if score >= 10:
return "🔥 狂热"
elif score >= 8:
return "❤️ 热爱"
elif score >= 5:
return "👍 喜欢"
else:
return "🤔 一般"
hobby_text = " ".join([f"{h}:{hobby_level(lvl)}" for h, lvl in hobby.items()])
tk.Label(hobby_frame, text=hobby_text, font=("微软雅黑", 10), bg=bg_color, fg="#1a237e").pack()
tk.Label(root, text="在追剧集:", font=("微软雅黑", 12), bg=bg_color, fg="white").grid(row=4, column=0, sticky="ne", padx=10, pady=5)
listbox = tk.Listbox(root, height=3, width=30, font=("微软雅黑", 10),
bg="#e3f2fd", fg="#0d47a1", selectbackground="#1565c0")
listbox.grid(row=4, column=1, sticky="w", padx=10, pady=5)
for item in tv_program:
listbox.insert(tk.END, item)
btn = tk.Button(root, text="🎉 彩蛋:打印 Python 之禅",
command=lambda: [print("\n".join([" ".join(line.split()) for line in __import__('this').s.__doc__.splitlines() if line.strip()]))],
bg="#1565c0", fg="white", font=("微软雅黑", 10),
activebackground="#0d47a1", activeforeground="white")
btn.grid(row=5, column=0, columnspan=2, pady=20)
root.mainloop()