mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
print() is a function just like every other function (#1101)
* print() is a function just like every other function
This commit is contained in:
parent
6654e1ec7d
commit
89acf5d017
@ -188,22 +188,22 @@ class XORCipher(object):
|
||||
# key = 67
|
||||
|
||||
# # test enrcypt
|
||||
# print crypt.encrypt("hallo welt",key)
|
||||
# print(crypt.encrypt("hallo welt",key))
|
||||
# # test decrypt
|
||||
# print crypt.decrypt(crypt.encrypt("hallo welt",key), key)
|
||||
# print(crypt.decrypt(crypt.encrypt("hallo welt",key), key))
|
||||
|
||||
# # test encrypt_string
|
||||
# print crypt.encrypt_string("hallo welt",key)
|
||||
# print(crypt.encrypt_string("hallo welt",key))
|
||||
|
||||
# # test decrypt_string
|
||||
# print crypt.decrypt_string(crypt.encrypt_string("hallo welt",key),key)
|
||||
# print(crypt.decrypt_string(crypt.encrypt_string("hallo welt",key),key))
|
||||
|
||||
# if (crypt.encrypt_file("test.txt",key)):
|
||||
# print "encrypt successful"
|
||||
# print("encrypt successful")
|
||||
# else:
|
||||
# print "encrypt unsuccessful"
|
||||
# print("encrypt unsuccessful")
|
||||
|
||||
# if (crypt.decrypt_file("encrypt.out",key)):
|
||||
# print "decrypt successful"
|
||||
# print("decrypt successful")
|
||||
# else:
|
||||
# print "decrypt unsuccessful"
|
||||
# print("decrypt unsuccessful")
|
||||
|
Loading…
Reference in New Issue
Block a user