mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
Fix DeprecationWarning: invalid escape sequence (#679)
Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
This commit is contained in:
parent
6128533319
commit
3dc50529ca
@ -1,7 +1,7 @@
|
||||
from __future__ import print_function
|
||||
import sys, random, cryptomath_module as cryptoMath
|
||||
|
||||
SYMBOLS = """ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~"""
|
||||
SYMBOLS = r""" !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~"""
|
||||
|
||||
def main():
|
||||
message = input('Enter message: ')
|
||||
|
@ -6,7 +6,7 @@ BYTE_SIZE = 256
|
||||
|
||||
def main():
|
||||
filename = 'encrypted_file.txt'
|
||||
response = input('Encrypte\Decrypt [e\d]: ')
|
||||
response = input(r'Encrypte\Decrypt [e\d]: ')
|
||||
|
||||
if response.lower().startswith('e'):
|
||||
mode = 'encrypt'
|
||||
|
@ -65,7 +65,7 @@ def my_max(a,b):
|
||||
|
||||
|
||||
def leftrotation(node):
|
||||
'''
|
||||
r'''
|
||||
A B
|
||||
/ \ / \
|
||||
B C Bl A
|
||||
@ -101,7 +101,7 @@ def rightrotation(node):
|
||||
return ret
|
||||
|
||||
def rlrotation(node):
|
||||
'''
|
||||
r'''
|
||||
A A Br
|
||||
/ \ / \ / \
|
||||
B C RR Br C LR B A
|
||||
|
@ -195,7 +195,7 @@ def InPreOrder(curr_node):
|
||||
return nodeList
|
||||
|
||||
def testBinarySearchTree():
|
||||
'''
|
||||
r'''
|
||||
Example
|
||||
8
|
||||
/ \
|
||||
@ -206,7 +206,7 @@ def testBinarySearchTree():
|
||||
4 7 13
|
||||
'''
|
||||
|
||||
'''
|
||||
r'''
|
||||
Example After Deletion
|
||||
7
|
||||
/ \
|
||||
|
Loading…
Reference in New Issue
Block a user