谢谢大家的帮助。这是我目前所做的
\begin{center}
\begin{minipage}[c]{4\linewidth}
\begin{tikzpicture}
\tikz
\foreach \i in {1,...,5}
\ifnum \i<4
\fill (\i*360/5:3) coordinate (5\i) circle(2.5 pt) node [below,xshift=-4*\i pt,yshift=18pt] {$\i$}
\else
\fill (\i*360/5:3) coordinate (5\i) circle(2.5 pt) node [below,xshift=11pt,yshift=5pt] {$\i$}\fi;
\draw (-3.6,3.2) circle (3 cm);
\end{tikzpicture}
\end{minipage}
\end{center}
答案1
星形形状已在shapes.geometric
库中提供。
\documentclass[tikz]{standalone}
\usetikzlibrary{shapes.geometric}
\begin{document}
\begin{tikzpicture}[n/.style={circle, fill,inner sep=1pt}]
\draw node [star, star point height=.5cm, minimum size=2cm,inner sep=0,outer sep=0] (s) {}
circle (1) (s.outer point 1) node[n,label={90:1}]{}
foreach\x in {4,2,5,3}{--(s.outer point \x) node[n,label={(-45+90*\x):\x}]{}}--cycle;
\end{tikzpicture}
\end{document}