有点区别,但是简单处理就可以搬过去
二者的路径很容易就能找到,不再多说

二者基本只有换行编码的区别
在notepad+里改一下换行编码就可以了
Windows 上的换行是“rn”, Android上的换行是“n”。所以题主出现了这种情况可以在电脑上使用Notepad++等软件,将hosts文件里的rn全部替换为n后才可以正常使用。
----------------分割线-------------------
楼下那个回答捡到宝了(手动滑稽)虽然答非所问
从这个问题应该能看出来:在问技术问题≈浪费时间
本教程就为大家提供一个干净的Host内容吧 ,把内容保存,以备不时只需:
首先 请大家记住 host文件的路径:
C:windowssystem32driversetchosts找到这个文件 您可以用:记事本 功能打开就好了
里面的内容会很多,但是 下面的 两条横线内的内容就是最干净的Host的内容 大家之需求将内容覆盖到原始文件就好了~
————————————————————————————————
# Copyright (c) 1993-1999 Microsoft Corp.
#

# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:

#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
————————————————————————————————


