如何把代码写的让人痛不欲生

  • C++版:

使用MY.hpp

                

#ifndef _MY
#define _MY
/*
 *Hello!
 *Hi there!
 *MY.hpp -- by Cao Gaoyuan,Chian,Baoding,version=0.0.1.
 *Well,my dear,look as this...
 *if you want to say "Hello World",you mayby write like tkis:
 *************************************************************
 * 1 #include<iostream>
 * 2 using namespace std;
 * 3 int main() 
 * 4 {
 * 5 	cout<<"Hello World"<<endl;
 * 6 	return 0;
 * 7 }
 *************************************************************
 *But now you are DIFFERENT,beacuse you have MY.HPP.
 *Now,you can write like THIS:
 *************************************************************
 * 1 #include "MY.hpp"
 * 2 //needn't include iosrteam
 * 3 _ __ std;
 * 4 ___ main()
 * 5 {
 * 6 	cout<<"Hello World"<<endl;
 * 7 	________________ 0;
 * 8 }
 *************************************************************
 *Just like you see...
 *Well,I'm sure it isn't wonderful,but the MY.hpp's version is just 0.0.1.
 *If you think the MY.hpp has ANY error,welcome to ********@***.com.(对不起,地址我删了)
 */
#define _Version "0.0.1"

/* includes */

#include<iostream>
#include<cstring>
#include<cmath>
#include<cstdlib>
#include<ctime>
#include<algorithm>
#include<windows.h>
#include<cstdio>
#include<list>
#include<map>
#include<conio.h>
#include<string>

/* You can write or delate "#include<...>" there. */



/* useful:"_"*1->"_"*28 */
/* c98 */

#define _ using //1
#define __ namespace //2
#define ___ int //3
#define ____ char //4
#define _____ float //5
#define ______ double //6
#define _______ bool //7
#define ________ long /* 8 *//* needn't define long long. */
#define _________ for //9
#define __________ while //10
#define ___________ if //11
#define ____________ else //12
#define _____________ true //13
#define ______________ false //14
#define _______________ void //15
#define ________________ return //16
#define _________________ switch //17
#define __________________ case //18
#define ___________________ break //19
#define ____________________ continue //20
#define _____________________ inline //21
#define ______________________ const //22
#define _______________________ class //23
#define ________________________ private //24
#define _________________________ public //25
#define __________________________ protected //26
#define ___________________________ friend //27
#define ____________________________ struct //28

/*   There should have 65 functions in c98,75 functions in c11,
 * but there only has 28 functions.So,you can add #defline.But,
 * "___________________________________________________________________________"
 * (75*"_")isn't very well,isn't? 
 */



/* endif */
#endif /* !CPP_MY_HPP */

看看它能干啥。。。(实际上,它啥都能干,不过展示的这个啥也干不了)

#include<MY.hpp> //version 0.0.1
_ __ std;
_______________________ _____________________________
{
	________________________:
		___ ______________________________;
		____ _______________________________;
		________ ________ ___ ________________________________;
	_________________________:
		_____________________________(___ _________________________________,________ ________ ___ __________________________________)
		{
			______________________________=_________________________________;
			_______________________________=__________________________________;
			_______________________________=(____)(__________________________________-_________________________________);
		}
		_______________ ___________________________________()
		{
			cout<<________________________________<<"\n"<<_______________________________;
		}
};
___ main()
{
	_____________________________ ______________________________(1530,76533);
	______________________________.___________________________________();
	________________ 0;
}
  • Python版

          1.用下划线命名变量,如:

_=input()
__=input()
___=_+__
print(___)

        2.用万能的’eval‘

a="""
_=input()
__=input()
___=_+__
print(___)
"""
eval(a)

        3.eval的加密形式(这个厉害)

a='\x14iGsxz\x7f~23\x14iiGsxz\x7f~23\x14iiiGi5ii\x14z|sx~2iii3\x14'
b=''
for a in list(a):
    b+=chr(ord(a)-10)
eval(b)

互动:如果你知道其他的方法,欢迎留言告诉我哦!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值