def encrypt(string, length): return ' '.join(string[i:i+length] for i in range(0,len(string),length))
encrypt('thisisarandomsentence',4)给
'this isar ando msen tenc e'
欢迎分享,转载请注明来源:内存溢出
def encrypt(string, length): return ' '.join(string[i:i+length] for i in range(0,len(string),length))
encrypt('thisisarandomsentence',4)给
'this isar ando msen tenc e'
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)