ex_6

File "ex_6.py", line 4, in (module)

y = "Those who know %s and those who %s." (binary, do_not)    # used %

TypeError:'str' object is not callable 

少写一个%

转义字符

\\  \

\'

\"

\a

\b

\f

\n

\N{Name}

\r ASCII

\t ASCII

\uxxxx

\Uxxxxxxxx

\v

\ooo

\xhh

%r 输出的是完整的数据

%s 输出字符

你可能感兴趣的:(ex_6)