发布网友 发布时间:2022-04-24 04:22
共1个回答
热心网友 时间:2023-10-27 15:48
##注意:最左边每个=表示一个空格
def encrypt(t):
====s=""
====for e in t:
========if e.islower():
============s+=chr(97+(ord(e)-97+7)%26)
========elif e.isupper():
============s+=chr(65+(ord(e)-65+7)%26)
========else:
============s+=e
====return s
t=input()
print(t,encrypt(t))
热心网友 时间:2023-10-27 15:48
##注意:最左边每个=表示一个空格
def encrypt(t):
====s=""
====for e in t:
========if e.islower():
============s+=chr(97+(ord(e)-97+7)%26)
========elif e.isupper():
============s+=chr(65+(ord(e)-65+7)%26)
========else:
============s+=e
====return s
t=input()
print(t,encrypt(t))
热心网友 时间:2023-10-27 15:48
##注意:最左边每个=表示一个空格
def encrypt(t):
====s=""
====for e in t:
========if e.islower():
============s+=chr(97+(ord(e)-97+7)%26)
========elif e.isupper():
============s+=chr(65+(ord(e)-65+7)%26)
========else:
============s+=e
====return s
t=input()
print(t,encrypt(t))
热心网友 时间:2023-10-27 15:48
##注意:最左边每个=表示一个空格
def encrypt(t):
====s=""
====for e in t:
========if e.islower():
============s+=chr(97+(ord(e)-97+7)%26)
========elif e.isupper():
============s+=chr(65+(ord(e)-65+7)%26)
========else:
============s+=e
====return s
t=input()
print(t,encrypt(t))