, \t , , , ! ( ).
, . , Makefile Python. , make(1) . ?
makefile = """
main.o : main.c defs.h
cc -c main.c
kbd.o : kbd.c defs.h command.h
cc -c kbd.c
command.o : command.c defs.h command.h
cc -c command.c
"""
makefile = """
main.o : main.c defs.h
\tcc -c main.c
kbd.o : kbd.c defs.h command.h
\tcc -c kbd.c
command.o : command.c defs.h command.h
\tcc -c command.c
"""
, .
, , , Python? ? , Python Python ast:
>>> print('\\t')
\t
>>> import ast
>>> print(ast.dump(ast.parse('"""hello world"""')))
Module(body=[Expr(value=Str(s='hello\tworld'))])
>>> print(ast.dump(ast.parse('"""hello\\tworld"""')))
Module(body=[Expr(value=Str(s='hello\tworld'))])
>>> ast.dump(ast.parse('"""hello world"""')) == ast.dump(ast.parse('"""hello\\tworld"""'))
True
, Python .
:
>>> print(ast.dump(ast.parse('r"""hello\\tworld"""')))
Module(body=[Expr(value=Str(s='hello\\tworld'))])
, ( ).