\documentclass[a4paper,12pt]{article}
\usepackage{dirtree}
\begin{document}
\dirtree{%
.1 Hardware.
.2 Devices.
.3 Tablets.
.4 Operating-System: Android.
}
\renewcommand\DTstyle{\rmfamily}
\dirtree{%
.1 Hardware.
.2 Devices.
.3 Tablets.
.4 Operating-System: Android.
}
\end{document}
![在此处输入图片描述](https://i.stack.imgur.com/fCmh6.png)