From 47034edf92a90512ebb339c2efe62cfcddc7351c Mon Sep 17 00:00:00 2001 From: ConsoleCoder Date: Thu, 20 Jul 2023 02:32:14 +0000 Subject: [PATCH] add python/cout.py. 6 --- python/cout.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 python/cout.py diff --git a/python/cout.py b/python/cout.py new file mode 100644 index 0000000..065d01b --- /dev/null +++ b/python/cout.py @@ -0,0 +1,18 @@ +# Python 到 C艹 [doge] +# 在 https://gitee.com/littlefean 的pythonSkillBilibili/046 面向对象-python变C艹/test.py发现 + +# 已经修改(已标明,不要捶我) +# ------------------------------------------------- + +# HEAD +class Out: + def __lshift__(self, other): + print(other, end="") + return self + +endl = '\n' +cout = Out() + +# CODE +#include +cout << 'Hello' << ' ' << 'World' << endl; \ No newline at end of file -- Gitee