答案1
根据先前类似的答案之一(我暂时找不到):
\documentclass[tikz, margin=3mm]{standalone}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}
\draw (-3,0) -- (3,0);
\draw (0,2pt) -- (0,-2pt) node[below=2mm] {$0$};
\draw[{Bracket[width=4mm]}-{Bracket[width=4mm]}]
(-2,0) node[below=2mm] {$-1$} -- ( 2,0) node[below=2mm] {$ 1$};
\draw[{Parenthesis[width=4mm]}-{Parenthesis[width=4mm]}]
(-1,0) node[below=2mm] {$-\frac{1}{2}$} -- (1,0) node[below=2mm] {$ \frac{1}{2}$};
\end{tikzpicture}
\end{document}