用Python创建声明性迷你语言的教程

发表于 5年以前  | 总阅读数:562 次

大多数程序员考虑编程时,他们都要设想用于编写应用程序的 命令式样式和技术。最受欢迎的通用编程语言(包括 Python 和其它面向对象的语言)在样式上绝大多数都是命令式的。另一方面,也有许多编程语言是 声明性样式,包括函数语言和逻辑语言,还包括通用语言和专用语言。

让我们列出几个属于各个种类的语言。许多读者已经使用过这些工具中的许多工具,但不见得考虑过它们之间的种类差别。Python、C、C++、Java、Perl、Ruby、Smalltalk、Fortran、Basic 和 xBase 都是简单的命令式编程语言。其中,一些是面向对象的,但那只是组织代码和数据的问题,而非基本编程样式的问题。使用这些语言,您 命令程序执行指令序列:把某些数据 放入(put)变量中;从变量中 获取(fetch)数据; 循环(loop)一个指令块 直到(until)满足了某些条件; 如果(if)某个命题为 true,那么就进行某些操作。所有这些语言的一个妙处在于:便于用日常生活中熟悉的比喻来考虑它们。日常生活都是由做事、选择、再做另一件事所组成的,期间或许会使用一些工具。可以简单地将运行程序的计算机想象成厨师、瓦匠或汽车司机。

诸如 Prolog、Mercury、SQL、XSLT 这样的语言、EBNF 语法和各种格式的真正配置文件,都 声明某事是这种情况,或者应用了某些约束。函数语言(比如 Haskell、ML、Dylan、Ocaml 和 Scheme)与此相似,但是它们更加强调陈述编程对象(递归、列表,等等)之间的内部(函数)关系。我们的日常生活(至少在叙事质量方面)没有提供对这些语言的编程构造的直接模拟。然而,对于那些可以用这些语言进行描述的问题来说,声明性描述 远远比命令式解决方案来得简明且不易出错。例如,请研究下面这个线性方程组:
清单 1. 线性方程式系统样本


    10x + 5y - 7z + 1 = 0
    17x + 5y - 10z + 3 = 0
    5x - 4y + 3z - 6 = 0

这是个相当漂亮的说明对象(x、y 和 z)之间几个关系的简单表达式。在现实生活中您可能会用不同的方式求出这些答案,但是实际上用笔和纸"求解 x"很烦,而且容易出错。从调试角度来讲,用 Python 编写求解步骤或许会更糟糕。

Prolog 是与逻辑或数学关系密切的语言。使用这种语言,您只要编写您知道是正确的语句,然后让应用程序为您得出结果。语句不是按照特定的顺序构成的(和线性方程式一样,没有顺序),而且您(程序员或用户)并不知道得出的结果都采用了哪些步骤。例如:
清单 2. family.pro Prolog 样本


    /* Adapted from sample at:
    <http://www.engin.umd.umich.edu/CIS/course.des/cis479/prolog/>
    This app can answer questions about sisterhood & love, e.g.:
    # Is alice a sister of harry?
    ?-sisterof( alice, harry )
    # Which of alice' sisters love wine?
    ?-sisterof( X, alice ), love( X, wine)
    */
    sisterof( X, Y ) :- parents( X, M, F ),
              female( X ),
              parents( Y, M, F ).
    parents( edward, victoria, albert ).
    parents( harry, victoria, albert ).
    parents( alice, victoria, albert ).
    female( alice ).
    loves( harry, wine ).
    loves( alice, wine ).

它和 EBNF(扩展巴科斯范式,Extended Backus-Naur Form)语法声明并不完全一样,但是实质相似。您可以编写一些下面这样的声明:
清单 3. EBNF 样本


    word    := alphanums, (wordpunct, alphanums)*, contraction?
    alphanums  := [a-zA-Z0-9]+
    wordpunct  := [-_]
    contraction := "'", ("clock"/"d"/"ll"/"m"/"re"/"s"/"t"/"ve")

如果您遇到一个单词而想要表述其看上去 可能会是什么,而实际上又不想给出如何识别它的序列指令,上面便是个简练的方法。正则表达式与此相似(并且事实上它能够满足这种特定语法产品的需要)。

还有另一个声明性示例,请研究描述有效 XML 文档方言的文档类型声明:
清单 4. XML 文档类型声明


    <!ELEMENT dissertation (chapter+)>
    <!ELEMENT chapter (title, paragraph+)>
    <!ELEMENT title (#PCDATA)>
    <!ELEMENT paragraph (#PCDATA | figure)+>
    <!ELEMENT figure EMPTY>

和其它示例一样,DTD 语言不包含任何有关如何识别或创建有效 XML 文档的指令。它只描述了如果文档存在,那它会是怎么样的。声明性语言采用虚拟语气。
Python 作为解释器 vs Python 作为环境

Python 库可以通过两种截然不同的方式中的一种来利用声明性语言。或许更为常用的技术是将非 Python 声明性语言作为数据来解析和处理。应用程序或库可以读入外部来源(或者是内部定义的但只用作"blob"的字符串),然后指出一组要执行的命令式步骤,这些步骤在某种形式上与那些外部声明是一致的。本质上,这些类型的库是"数据驱动的"系统;声明性语言和 Python 应用程序执行或利用其声明的操作之间有着概念和范畴差别。事实上,相当普遍的一点是,处理那些相同声明的库也被用来实现其它编程语言。

上面给出的所有示例都属于第一种技术。库 PyLog 是 Prolog 系统的 Python 实现。它读取像样本那样的 Prolog 数据文件,然后创建 Python 对象来对 Prolog 声明 建模。EBNF 样本使用专门变体 SimpleParse ,这是一个 Python 库,它将这些声明转换成可以被 mx.TextTools 所使用的状态表。 mx.TextTools 自身是 Python 的扩展库,它使用底层 C 引擎来运行存储在 Python 数据结构中的代码,但与 Python 本质上几乎没什么关系。对于这些任务而言,Python 是极佳的 粘合剂,但是粘合在一起的语言与 Python 差别很大。而且,大多数 Prolog 实现都不是用 Python 编写的,这和大多数 EBNF 解析器一样。

DTD 类似于其它示例。如果您使用象 xmlproc 这样的验证解析器,您可以利用 DTD 来验证 XML 文档的方言。但是 DTD 的语言并不是 Python 式的, xmlproc 只将它用作需要解析的数据。而且,已经用许多编程语言编写过 XML 验证解析器。XSLT 转换与此相似,也不是特定于 Python 的,而且像 ft.4xslt 这样的模块只将 Python 用作"粘合剂"。

虽然上面的方法和上面所提到的工具(我一直都在使用)都没什么 不对,但如果 Python 本身是声明性语言的话,那么它可能会更精妙,而且某些方面会表达得更清晰。如果没有其它因素的话,有助于此的库不会使程序员在编写一个应用程序时考虑是否采用两种(或更多)语言。有时,依靠 Python 的自省能力来实现"本机"声明,既简单又管用。

自省的魔力

解析器 Spark 和 PLY 让用户 用 Python 来声明 Python 值,然后使用某些魔法来让 Python 运行时环境进行解析配置。例如,让我们研究一下与前面 SimpleParse 语法等价的 PLY 语法。 Spark 类似于下面这个示例:
清单 5. PLY 样本


    tokens = ('ALPHANUMS','WORDPUNCT','CONTRACTION','WHITSPACE')
    t_ALPHANUMS = r"[a-zA-Z0-0]+"
    t_WORDPUNCT = r"[-_]"
    t_CONTRACTION = r"'(clock|d|ll|m|re|s|t|ve)"
    def t_WHITESPACE(t):
      r"\s+"
      t.value = " "
      return t
    import lex
    lex.lex()
    lex.input(sometext)
    while 1:
      t = lex.token()
      if not t: break

我已经在我即将出版的书籍 Text Processing in Python 中编写了有关 PLY 的内容,并且在本专栏文章中编写了有关 Spark 的内容(请参阅 参考资料以获取相应链接)。不必深入了解库的详细信息,这里您应当注意的是:正是 Python 绑定本身配置了解析(在这个示例中实际是词法分析/标记化)。 PLY 模块在 Python 环境中运行以作用于这些模式声明,因此就正好非常了解该环境。

PLY如何得知它自己做什么,这涉及到一些非常奇异的 Python 编程。起初,中级程序员会发现可以查明 globals() 和 locals() 字典的内容。如果声明样式略有差异的话就好了。例如,假想代码更类似于这样:
清单 6. 使用导入的模块名称空间


    import basic_lex as _
    _.tokens = ('ALPHANUMS','WORDPUNCT','CONTRACTION')
    _.ALPHANUMS = r"[a-zA-Z0-0]+"
    _.WORDPUNCT = r"[-_]"
    _.CONTRACTION = r"'(clock|d|ll|m|re|s|t|ve)"
    _.lex()

这种样式的声明性并不差,而且可以假设 basic_lex 模块包含类似下面这样的简单内容:
清单 7. basic_lex.py


    def lex():
      for t in tokens:
        print t, '=', globals()[t]

这会产生:


    % python basic_app.py
    ALPHANUMS = [a-zA-Z0-0]+
    WORDPUNCT = [-_]
    CONTRACTION = '(clock|d|ll|m|re|s|t|ve)

PLY 设法使用堆栈帧信息插入了导入模块的名称空间。例如:
清单 8. magic_lex.py


    import sys
    try: raise RuntimeError
    except RuntimeError:
      e,b,t = sys.exc_info()
      caller_dict = t.tb_frame.f_back.f_globals
    def lex():
      for t in caller_dict['tokens']:
        print t, '=', caller_dict['t_'+t]

这产生了与 basic_app.py 样本所给输出一样的输出,但是具有使用前面 t_TOKEN 样式的声明。

实际的 PLY 模块中要比这更神奇。我们看到用模式 t_TOKEN 命名的标记实际上可以是包含了正则表达式的字符串,或是包含了正则表达式文档字符串和操作代码的函数。某些类型检查允许以下多态行为:
清单 9. polymorphic_lex


    # ...determine caller_dict using RuntimeError...
    from types import *
    def lex():
      for t in caller_dict['tokens']:
        t_obj = caller_dict['t_'+t]
        if type(t_obj) is FunctionType:
          print t, '=', t_obj.__doc__
        else:
          print t, '=', t_obj

显然,相对于用来玩玩的示例而言,真正的 PLY 模块用这些已声明的模式可以做更有趣的事,但是这些示例演示了其中所涉及的一些技术。

继承的魔力

让支持库到处插入并操作应用程序的名称空间,这会启用精妙的声明性样式。但通常,将继承结构和自省一起使用会使灵活性更佳。

模块 gnosis.xml.validity 是用来创建直接映射到 DTD 产品的类的框架。任何 gnosis.xml.validity 类 只能用符合 XML 方言有效性约束的参数进行实例化。实际上,这并不十分正确;当只存在一种明确的方式可将参数"提升"成正确类型时,模块也可从更简单的参数中推断出正确类型。

由于我已经编写了 gnosis.xml.validity 模块,所以我倾向于思考其用途自身是否有趣。但是对于本文,我只想研究创建有效性类的声明性样式。与前面的 DTD 样本相匹配的一组规则/类包括:
清单 10. gnosis.xml.validity 规则声明


    from gnosis.xml.validity import *
    class figure(EMPTY):   pass
    class _mixedpara(Or):   _disjoins = (PCDATA, figure)
    class paragraph(Some):  _type = _mixedpara
    class title(PCDATA):   pass
    class _paras(Some):    _type = paragraph
    class chapter(Seq):    _order = (title, _paras)
    class dissertation(Some): _type = chapter

您可以使用以下命令从这些声明中创建出实例:


    ch1 = LiftSeq(chapter, ("1st Title","Validity is important"))
    ch2 = LiftSeq(chapter, ("2nd Title","Declaration is fun"))
    diss = dissertation([ch1, ch2])
    print diss

请注意这些类和前面的 DTD 非常匹配。映射基本上是一一对应的;除了有必要对嵌套标记的量化和交替使用中介体之外(中介体名称用前导下划线标出来)。

还要注意的是,这些类虽然是用标准 Python 语法创建的,但它们也有不同寻常(且更简练)之处:它们没有方法或实例数据。单独定义类,以便从某框架继承类,而该框架受到单一的类属性限制。例如, 是其它标记序列,即 后面跟着一个或多个 <paragraph> 标记。但是为确保在实例中遵守约束,我们所需做的就是用这种简单的方式来 声明chapter 类。</p> <p>编写像 gnosis.xml.validity.Seq 这样的父类程序所涉及的主要"技巧",就是在初始化期间研究 实例的 .<strong>class</strong> 属性。类 chapter 自身并不进行初始化,因此调用其父类的 <strong>init</strong>() 方法。但是传递给父类 <strong>init</strong>() 的 self 是 chapter 的实例,而且 self 知道 chapter。为了举例说明这一点,下面列出了部分 gnosis.xml.validity.Seq 实现:<br /> 清单 11. 类 gnosis.xml.validity.Seq</p> <pre><code> class Seq(tuple): def __init__(self, inittup): if not hasattr(self.__class__, '_order'): raise NotImplementedError, \ "Child of Abstract Class Seq must specify order" if not isinstance(self._order, tuple): raise ValidityError, "Seq must have tuple as order" self.validate() self._tag = self.__class__.__name__ </code></pre> <p>一旦应用程序程序员试图创建 chapter 实例,实例化代码就检查是否用所要求的 ._order 类属性声明了 chapter ,并检查该属性是否为所需的元组对象。方法 .validate() 要做进一步的检查,以确保初始化实例所用的对象属于 ._order 中指定的相应类。</p> <p><strong>何时声明</strong></p> <p>声明性编程样式在声明约束方面 几乎一直比命令式或过程式样式更直接。当然,并非所有的编程问题都是关于约束的 - 或者说至少这并非总是自然定律。但是如果基于规则的系统(比如语法和推理系统)可以进行声明性描述,那么它们的问题就比较容易处理了。是否符合语法的命令式验证很快就会变成非常复杂难懂的所谓"意大利面条式代码"(spaghetti code),而且很难调试。模式和规则的声明仍然可以更简单。</p> <p>当然,起码在 Python 中,声明规则的验证和增强总是会归结为过程式检查。但是把这种过程式检查放在进行了良好测试的库代码中比较合适。单独的应用程序应该依靠由像 Spark 或 PLY 或 gnosis.xml.validity 这样的库所提供的更简单的声明性接口。其它像 xmlproc 、 SimpleParse 或 ft.4xslt 这样的库,尽管不是 用 Python进行声明的(Python 当然适用于它们的领域),也能使用声明性样式。 </p> </div> </div> </div> <div class="blockgap"></div> <div style="background-color:#fff;padding-top:8px;border-radius: 4px;padding-bottom:8px;"> <div style="margin-left:21px;"> <script type="text/javascript"> (function() { var s = "_" + Math.random().toString(36).slice(2); document.write('<div style="" id="' + s + '"></div>'); (window.slotbydup = window.slotbydup || []).push({ id: "u3790074", container: s }); })(); </script> </div> </div> <div class="blockgap"></div> <div class="sideblock"> <div class="block-title"><i style="font-size:1.8rem;" class="fab fa-audible"></i><span style="font-size:1.8rem;"> 相关推荐</span></div> <div class="block-body"> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn/img/2023-09-04/71a1bb7210e2f17f8e0e3e49647fbe46.jpg"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/4/219.html"> 刘强东夫妇:“移民美国”传言被驳斥 </a> </h3> <div class="tp-postitem-summary"> <p> 京东创始人刘强东和其妻子章泽天最近成为了互联网舆论关注的焦点。有关他们“移民美国”和在美国购买豪宅的传言在互联网上广泛传播。然而,京东官方通过微博发言人发布的消息澄清了这些传言,称这些言论纯属虚假信息和蓄意捏造。 </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >808次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/4/219.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/images/ent-logo-thumb/huwei.jpg"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/4/901.html"> 博主曝三大运营商,将集体采购百万台华为Mate60系列 </a> </h3> <div class="tp-postitem-summary"> <p> 日前,据博主“@超能数码君老周”爆料,国内三大运营商中国移动、中国电信和中国联通预计将集体采购百万台规模的华为Mate60系列手机。 </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >770次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/4/901.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/8/284.html"> ASML CEO警告:出口管制不是可行做法,不要“逼迫中国大陆创新” </a> </h3> <div class="tp-postitem-summary"> <p> 据报道,荷兰半导体设备公司ASML正看到美国对华遏制政策的负面影响。阿斯麦(ASML)CEO彼得·温宁克在一档电视节目中分享了他对中国大陆问题以及该公司面临的出口管制和保护主义的看法。彼得曾在多个场合表达了他对出口管制以及中荷经济关系的担忧。 </p> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span>756次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/8/284.html" target="_blank">详细内容 »</a> </div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/images/ent-logo-thumb/douyin.jpg"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/5/467.html"> 抖音中长视频App青桃更名抖音精选,字节再发力对抗B站 </a> </h3> <div class="tp-postitem-summary"> <p> 今年早些时候,抖音悄然上线了一款名为“青桃”的 App,Slogan 为“看见你的热爱”,根据应用介绍可知,“青桃”是一个属于年轻人的兴趣知识视频平台,由抖音官方出品的中长视频关联版本,整体风格有些类似B站。 </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >648次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/5/467.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn/img/2023-09-05/306e611a07fbb00c7022a7014b0b7f73"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/5/927.html"> 威马CDO:中国每百户家庭仅17户有车 </a> </h3> <div class="tp-postitem-summary"> <p> 日前,威马汽车首席数据官梅松林转发了一份“世界各国地区拥车率排行榜”,同时,他发文表示:中国汽车普及率低于非洲国家尼日利亚,每百户家庭仅17户有车。意大利世界排名第一,每十户中九户有车。 </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >589次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/5/927.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/4/526.html"> 研究发现维生素 C 等抗氧化剂会刺激癌症生长和转移 </a> </h3> <div class="tp-postitem-summary"> <p> 近日,一项新的研究发现,维生素 C 和 E 等抗氧化剂会激活一种机制,刺激癌症肿瘤中新血管的生长,帮助它们生长和扩散。 </p> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span>449次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/4/526.html" target="_blank">详细内容 »</a> </div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/images/ent-logo-thumb/apple.jpg"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/1/463.html"> 苹果据称正引入3D打印技术,用以生产智能手表的钢质底盘 </a> </h3> <div class="tp-postitem-summary"> <p> 据媒体援引消息人士报道,苹果公司正在测试使用3D打印技术来生产其智能手表的钢质底盘。消息传出后,3D系统一度大涨超10%,不过截至周三收盘,该股涨幅回落至2%以内。 </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >446次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/1/463.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn/img/2023-09-04/feaca95ded3028bc03a8da8a0e24a1a2"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/4/1044.html"> 千万级抖音网红秀才账号被封禁 </a> </h3> <div class="tp-postitem-summary"> <p> 9月2日,坐拥千万粉丝的网红主播“秀才”账号被封禁,在社交媒体平台上引发热议。平台相关负责人表示,“秀才”账号违反平台相关规定,已封禁。据知情人士透露,秀才近期被举报存在违法行为,这可能是他被封禁的部分原因。据悉,“秀才”年龄39岁,是安徽省亳州市蒙城县人,抖音网红,粉丝数量超1200万。他曾被称为“中老年... </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >445次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/4/1044.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/4/302.html"> 亚马逊股东起诉公司和贝索斯,称其在购买卫星发射服务时忽视了 SpaceX </a> </h3> <div class="tp-postitem-summary"> <p> 9月3日消息,亚马逊的一些股东,包括持有该公司股票的一家养老基金,日前对亚马逊、其创始人贝索斯和其董事会提起诉讼,指控他们在为 Project Kuiper 卫星星座项目购买发射服务时“违反了信义义务”。 </p> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span>444次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/4/302.html" target="_blank">详细内容 »</a> </div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/images/ent-logo-thumb/apple.jpg"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/4/725.html"> 苹果上线AppsbyApple网站,以推广自家应用程序 </a> </h3> <div class="tp-postitem-summary"> <p> 据消息,为推广自家应用,苹果现推出了一个名为“Apps by Apple”的网站,展示了苹果为旗下产品(如 iPhone、iPad、Apple Watch、Mac 和 Apple TV)开发的各种应用程序。 </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >442次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/4/725.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/images/ent-logo-thumb/tesla.jpg"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/4/647.html"> 特斯拉美国降价引发投资者不满:“这是短期麻醉剂” </a> </h3> <div class="tp-postitem-summary"> <p> 特斯拉本周在美国大幅下调Model S和X售价,引发了该公司一些最坚定支持者的不满。知名特斯拉多头、未来基金(Future Fund)管理合伙人加里·布莱克发帖称,降价是一种“短期麻醉剂”,会让潜在客户等待进一步降价。 </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >441次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/4/647.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/4/664.html"> 光刻机巨头阿斯麦:拿到许可,继续对华出口 </a> </h3> <div class="tp-postitem-summary"> <p> 据外媒9月2日报道,荷兰半导体设备制造商阿斯麦称,尽管荷兰政府颁布的半导体设备出口管制新规9月正式生效,但该公司已获得在2023年底以前向中国运送受限制芯片制造机器的许可。 </p> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span>437次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/4/664.html" target="_blank">详细内容 »</a> </div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/images/ent-logo-thumb/elonmask.jpg"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/4/118.html"> 马斯克与库克首次隔空合作:为苹果提供卫星服务 </a> </h3> <div class="tp-postitem-summary"> <p> 近日,根据美国证券交易委员会的文件显示,苹果卫星服务提供商 Globalstar 近期向马斯克旗下的 SpaceX 支付 6400 万美元(约 4.65 亿元人民币)。用于在 2023-2025 年期间,发射卫星,进一步扩展苹果 iPhone 系列的 SOS 卫星服务。 </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >430次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/4/118.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/images/ent-logo-thumb/elonmask.jpg"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/4/260.html"> 𝕏(推特)调整隐私政策,可拿用户发布的信息训练 AI 模型 </a> </h3> <div class="tp-postitem-summary"> <p> 据报道,马斯克旗下社交平台𝕏(推特)日前调整了隐私政策,允许 𝕏 使用用户发布的信息来训练其人工智能(AI)模型。新的隐私政策将于 9 月 29 日生效。新政策规定,𝕏可能会使用所收集到的平台信息和公开可用的信息,来帮助训练 𝕏 的机器学习或人工智能模型。 </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >428次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/4/260.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/4/214.html"> 荣耀CEO谈华为手机回归:替老同事们高兴,对行业也是好事 </a> </h3> <div class="tp-postitem-summary"> <p> 9月2日,荣耀CEO赵明在采访中谈及华为手机回归时表示,替老同事们高兴,觉得手机行业,由于华为的回归,让竞争充满了更多的可能性和更多的魅力,对行业来说也是件好事。 </p> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span>423次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/4/214.html" target="_blank">详细内容 »</a> </div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn/img/2023-09-01/ad1699b6ffae6610a2f72bdbe100ae3b"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/1/962.html"> AI操控无人机能力超越人类冠军 </a> </h3> <div class="tp-postitem-summary"> <p> 《自然》30日发表的一篇论文报道了一个名为Swift的人工智能(AI)系统,该系统驾驶无人机的能力可在真实世界中一对一冠军赛里战胜人类对手。 </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >423次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/1/962.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/images/ent-logo-thumb/openai.jpg"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/1/391.html"> AI生成的蘑菇科普书存在可致命错误 </a> </h3> <div class="tp-postitem-summary"> <p> 近日,非营利组织纽约真菌学会(NYMS)发出警告,表示亚马逊为代表的电商平台上,充斥着各种AI生成的蘑菇觅食科普书籍,其中存在诸多错误。 </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >420次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/1/391.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/images/ent-logo-thumb/elonmask.jpg"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/1/452.html"> 社交媒体平台𝕏计划收集用户生物识别数据与工作教育经历 </a> </h3> <div class="tp-postitem-summary"> <p> 社交媒体平台𝕏(原推特)新隐私政策提到:“在您同意的情况下,我们可能出于安全、安保和身份识别目的收集和使用您的生物识别信息。” </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >411次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/1/452.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/4/178.html"> 国产扫地机器人热销欧洲,国产割草机器人抢占欧洲草坪 </a> </h3> <div class="tp-postitem-summary"> <p> 2023年德国柏林消费电子展上,各大企业都带来了最新的理念和产品,而高端化、本土化的中国产品正在不断吸引欧洲等国际市场的目光。 </p> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span>406次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/4/178.html" target="_blank">详细内容 »</a> </div> </div> <div style="background-color: #eee;height:1px;margin:0px 0px;"></div> <div class="tp-postitem"> <div class="tp-postitem-thumbnailwrapper"> <img class="tp-postitem-thumbnailimg lazy" data-original="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/images/ent-logo-thumb/apple.jpg"/> </div> <div class="tp-postitem-textwrapper"> <h3 class="tp-postitem-title"> <a target="_blank" class="cleanurl" href="/doc/2023/9/4/268.html"> 罗永浩吐槽iPhone15和14不会有区别,除了序列号变了 </a> </h3> <div class="tp-postitem-summary"> <p> 罗永浩日前在直播中吐槽苹果即将推出的 iPhone 新品,具体内容为:“以我对我‘子公司’的了解,我认为 iPhone 15 跟 iPhone 14 不会有什么区别的,除了序(列)号变了,这个‘不要脸’的东西,这个‘臭厨子’。 </p> </div> </div> <div class="tp-postitem-bottom"> <span>发布于:1年以前</span>  |  <span >398次阅读</span>  |  <a class="cleanurl" href="/doc/2023/9/4/268.html" target="_blank">详细内容 »</a> </div> <div style="clear:both"></div> </div> </div> </div> <div style="height:8px;"></div> </div> <div class="three columns"> <!-- article h5entry --> <div class="sideblock"> <a href="https://m.hellobit.com.cn/doc/day/2018-07-03/9183.html"> <div style="padding:10px 10px 0px 10px;"> <div style="float:left;"> <img style="width:50px;height:50px;" src="/qrcode/aHR0cHM6Ly9tLmhlbGxvYml0LmNvbS5jbi9kb2MvZGF5LzIwMTgtMDctMDMvOTE4My5odG1s?size=400&margin=0"></img> </div> <div style="float:left;margin-left:10px;"> <p class="headline">扫码在手机上访问</p> <p class="descline">为您提供高质量的文档</p> </div> <div style="clear:both;"></div> </div> </a> </div> <div class="blockgap"></div> <!-- tech list --> <div class="sideblock"> <div class="block-title"><i class="fas fa-chart-line"></i><span> 相关文章</span></div> <div class="block-body"> <div style="border-bottom:1px dashed #eee;padding:8px 0px;"> <a class="urlblockv2 cleanurl" href="/doc/day/2018-09-22/8440.html"> <span class="fa fa-caret-right"></span> Android插件化方案 </a> <span style="font-size: 14px;color: #333;display:inline-block;">5年以前  <span style="color:#ccc;">|</span>  237152次阅读</span> </div> <div style="border-bottom:1px dashed #eee;padding:8px 0px;"> <a class="urlblockv2 cleanurl" href="/doc/2022/12/27/653.html"> <span class="fa fa-caret-right"></span> 前端录屏 + 定位源码,帮你快速定位线上 bug </a> <span style="font-size: 14px;color: #333;display:inline-block;">1年以前  <span style="color:#ccc;">|</span>  27693次阅读</span> </div> <div style="border-bottom:1px dashed #eee;padding:8px 0px;"> <a class="urlblockv2 cleanurl" href="/doc/2021/11/4/389.html"> <span class="fa fa-caret-right"></span> 飞书里面给链接生成一个预览是怎么做到的? </a> <span style="font-size: 14px;color: #333;display:inline-block;">2年以前  <span style="color:#ccc;">|</span>  9535次阅读</span> </div> <div style="border-bottom:1px dashed #eee;padding:8px 0px;"> <a class="urlblockv2 cleanurl" href="/doc/2022/10/19/765.html"> <span class="fa fa-caret-right"></span> vscode超好用的代码书签插件Bookmarks </a> <span style="font-size: 14px;color: #333;display:inline-block;">1年以前  <span style="color:#ccc;">|</span>  7933次阅读</span> </div> <div style="padding:8px;"> <a class="urlblockv2 cleanurl" href="/doc/2020/1/5/861.html"> <span class="fa fa-caret-right"></span> raw.githubusercontent.com被污染的解决办法 </a> <span style="font-size: 14px;color: #333;display:inline-block;">4年以前  <span style="color:#ccc;">|</span>  7766次阅读</span> </div> </div> </div> <div class="blockgap"></div> <!-- article toc, 放最后 --> <div id="toc_panel_all"> <div id="toc_panel"> <div class="sideblock right-menu"> <div class="block-title"><i class="fas fa-stream"></i><span> 目录</span></div> <div class="block-body"> <div id="toc" class="toc-container"></div> </div> </div> <div class="blockgap"></div> </div> <script> function onLoadTocTree(){ tocList(); } </script> <div class="sideblock" style="border-radius: 4px;"> <div class="_d3aes4p30wo" style="width:250px;height:250px;"></div> <script type="text/javascript"> (window.slotbydup = window.slotbydup || []).push({ id: "u1587556", container: "_d3aes4p30wo", async: true }); </script> </div> <div class="blockgap"></div> </div> </div> </div> </div> <br/> <script src="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/themes/gr/vendor/jquery/dist/jquery.min.js"></script> <script src="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/themes/gr/vendor/jqueryui/jquery-ui-core-widget.min.js"></script> <script src="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/themes/gr/vendor/jqueryui/jquery-ui-core-widget.min.js"></script> <link rel="stylesheet" href="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/themes/gr/v6/css/jquery.tocify.css"> <script src="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/themes/gr/v6/js/jquery.tocify.js"></script> <link rel="stylesheet" href="/themes/gr/toc/toc.css?ver=20231113"> <script src="/themes/gr/toc/toc.js?ver=20231113"></script> <script> var __isIEMode = false; </script> <script src="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/themes/gr/vendor/highlight(11.7)/highlight.min.js"></script> <script src="https://oss-cn-hangzhou.aliyuncs.com/codingsky/cdn1/codingsky/themes/gr/v6/js/lazyload.js"></script> <script src="/themes/gr/js/utils.js?ver=20231113"></script> <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script> <script> var articleID = 29183 function onArticlePageLoaded(){ initArticlePage(); } </script> <div class="suspension-panel suspension-panel"> <button id="back-to-top" title="回到顶部" class="btn to-top-btn" style=""> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" class=""><path data-v-01e634ce="" fill-rule="evenodd" clip-rule="evenodd" d="M2.75 1C2.33579 1 2 1.33579 2 1.75C2 2.16421 2.33579 2.5 2.75 2.5H13.25C13.6642 2.5 14 2.16421 14 1.75C14 1.33579 13.6642 1 13.25 1H2.75ZM7.24407 3.87287C7.64284 3.41241 8.35716 3.41241 8.75593 3.87287L13.0622 8.84535C13.6231 9.49299 13.163 10.5 12.3063 10.5H10V14C10 14.5523 9.55228 15 9 15H7C6.44772 15 6 14.5523 6 14V10.5H3.69371C2.83696 10.5 2.37691 9.49299 2.93778 8.84535L7.24407 3.87287Z" fill="#8A919F"></path></svg> </button> <button title="建议反馈" class="btn meiqia-btn" style=""> <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" class="icon-feedback"><path data-v-01e634ce="" fill-rule="evenodd" clip-rule="evenodd" d="M1.8252 4.002C1.8252 2.80032 2.79935 1.82617 4.00102 1.82617H12.001C13.2027 1.82617 14.1768 2.80032 14.1768 4.002V9.71628C14.1768 10.918 13.2027 11.8921 12.001 11.8921H9.43308L6.92709 14.1281C6.4455 14.5578 5.68234 14.216 5.68234 13.5706V11.8921H4.00102C2.79934 11.8921 1.8252 10.918 1.8252 9.71628V4.002ZM11.2414 7.86753C11.3826 7.65526 11.3249 7.36878 11.1126 7.22764C10.9004 7.08651 10.6139 7.14417 10.4728 7.35643C9.94042 8.15705 9.03153 8.68309 7.99997 8.68309C6.96841 8.68309 6.05952 8.15705 5.52719 7.35643C5.38605 7.14417 5.09957 7.08651 4.88731 7.22764C4.67504 7.36878 4.61738 7.65526 4.75852 7.86753C5.45467 8.91452 6.64645 9.60617 7.99997 9.60617C9.35349 9.60617 10.5453 8.91452 11.2414 7.86753Z" fill="#1E80FF"></path></svg> </button> </div> <script> setTimeout(function(){ var btn = document.getElementById('back-to-top'); if(btn != null){ btn.onclick = function(){ $('body,html').animate({scrollTop:0},300) } } },1000) function initPageAfterCheckToken(){ if(typeof onInitSnippetPage === "function"){ onInitSnippetPage(); } if(typeof onInitSnippetViewPage === "function"){ onInitSnippetViewPage(); } if(typeof onArticlePageLoaded === "function"){ onArticlePageLoaded(); } if(typeof onLoadTocTree === "function"){ onLoadTocTree(); } if(typeof onInitBulmaDialog === "function"){ onInitBulmaDialog(); } } $(document).ready(function(){ initCurrentAuthUser(function(){ if(isLogined()){ $("#login-nav-menu").hide(); //$("#login-nav-menu").text("登录"); //$("#register-nav-menu").hide(); //$("#register-nav-menu").text("注册"); $("#userinfo-nav-menu").show(); $("#username-label").text(getDisplayName()); }else{ $("#login-nav-menu").show(); $("#userinfo-nav-menu").hide(); $("#userinfo-nav-menu-link").hide(); } initPageAfterCheckToken(); }); $('img.lazy').lazyload(); if(typeof wechatShareArticle === "function"){ wechatShareArticle(); } if(__isIEMode){ hljs.initHighlighting(); }else{ hljs.highlightAll(); } if(typeof onInitBookContentPage === "function"){ onInitBookContentPage(); } if(typeof onInitSearchPage === "function"){ onInitSearchPage(); } // 主界面右侧菜单点击 /*$('#userinfo-nav-menu').click(function(){ $("#dropMenuWrapper").toggle(); });*/ }); $(document).click(function(event){ var navMenuIds = ["userinfo-nav-menu","username-label","username-label-caret"] var eventId = $(event.target).attr("id"); var arrIndex = navMenuIds.indexOf(eventId); if(arrIndex >= 0){ return; } $("#dropMenuWrapper").hide(); }); </script> <div class="modal"> <div class="modal-background"></div> <div class="modal-card-body"> <ul> <li>收藏文章</li> </ul> </div> <button class="button">暂不登录</button> <a href="/user/login" class="button is-primary">去登录</a> </div> <div id="toLoginDialogGuide" class="modal"> <div class="modal-background"></div> <div class="modal-content" style="background-color:#fff;padding:22px 22px 22px 22px;width:400px;"> <h3>登录后可以享受更多权益</h3> <ul style="display:flex;justify-content: space-between;flex-wrap: wrap;flex-direction: row;"> <li class="login-guide-list-item"> <span class="icon-text"><span class="icon" style="color:#3472F7;"><i class="fab fa-dochub"></i></span><span>收藏有用的文章</span></span> </li> <li class="login-guide-list-item"> <span class="icon-text"><span class="icon" style="color:#3472F7;"><i class="fab fa-codepen"></i></span><span>整理自己的代码</span></span> </li> <li class="login-guide-list-item"> <span class="icon-text"><span class="icon" style="color:#3472F7;"><i class="fas fa-history"></i></span><span>查阅浏览足迹</span></span> </li> <li class="login-guide-list-item"> <span class="icon-text"><span class="icon" style="color:#3472F7;"><i class="fas fa-exchange-alt"></i></span><span>多个平台共享账号</span></span> </li> </ul> <a href="/user/login" style="width:100%;" class="button is-primary">去登录</a> <p>首次使用?从这里 <a href="/user/login" class="cleanurl">注册</a></p> </div> </div> <!-- baidu union --> <script type="text/javascript" src="//cpro.baidustatic.com/cpro/ui/c.js" async="async" defer="defer" ></script> <!-- Global site tag (gtag.js) - Google Analytics <script async src="https://www.googletagmanager.com/gtag/js?id=UA-108792812-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-108792812-1'); </script> --> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?713c92a31aa12d55b910e2065c7cda9d"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <script> /*var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?e066867ae5a323a82641e57db7e7c914"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })();*/ </script> <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> <!-- <script type="text/javascript" src="http://tajs.qq.com/stats?sId=66376258" charset="UTF-8"></script> --> <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-2VE3RBLF6N"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-2VE3RBLF6N'); </script> </body> </html>