SWPU NSS新生赛(校外通道)

exp记录

ord(x):将ascii字符转换为int
chr(x):将int转为ascii字符

s1="LQQAVDyZMP]3q]emmf]uc{]vm]glap{rv]dnce"
s2=""
val=0
print(len(s1))

for x in s1:
	#print(x)
	val=2^ord(x)
	s2=s2+chr(val)

print(s2)

你可能感兴趣的:(python)