index.html 43.2 KB
Newer Older
T
TRHX 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
<!--

               .@@@@@@@@@@@@@@@@^ .@@@@@@@@@@@\`    .@@@@@.   =@@@@^ .@@@@@@.   .@@@@@^      =@@@@@^         ./@@@@@@@@\.                      =@@@@@@@@@@@].     =@@@@O             ./@@@@@@@O`        .]@@@@@@@@].
               .@@@@@@@@@@@@@@@@^ .@@@@@@@@@@@@@@`  .@@@@@.   =@@@@^  .@@@@@@. .@@@@@^       =@@@@@.       ./@@@@@@@@@@@@`                     =@@@@@@@@@@@@@^    =@@@@O            /@@@@@@@@@@@@.    ./@@@@@@@@@@@/
               .[[[[[\@@@@@[[[[[` .@@@@@...,\@@@@@. .@@@@@.   =@@@@^   .\@@@@\./@@@@^        ,@@@@@.       =@@@@@`..[\@/.                      =@@@@/...\@@@@@    =@@@@O           =@@@@@/.,@@@@@@.  .@@@@@@/..,\/.
                     =@@@@O       .@@@@@.   .@@@@@. .@@@@@`.../@@@@^     \@@@@@@@@@`         .@@@@/        =@@@@@@].                           =@@@@^  ./@@@@^    =@@@@O          .@@@@@^   .@@@@@^  /@@@@@.
                     =@@@@O       .@@@@@]]]/@@@@@/  .@@@@@@@@@@@@@@^      =@@@@@@@`           =@@@^        .\@@@@@@@@@@]                       =@@@@@@@@@@@/.     =@@@@O          =@@@@@.    =@@@@O .@@@@@^  /@@@@@@^
                     =@@@@O       .@@@@@@@@@@@@@/.  .@@@@@@@@@@@@@@^      /@@@@@@@`           ,@@@.          .\@@@@@@@@@@^                     =@@@@@@@@@@@@@\.   =@@@@O          =@@@@@.    =@@@@O .@@@@@^  O@@@@@@^
                     =@@@@O       .@@@@@@@@@@@@^    .@@@@@.   =@@@@^    ./@@@@@@@@@`                             .[\@@@@@@.                    =@@@@^    =@@@@^   =@@@@O          .@@@@@^    @@@@@^  @@@@@\  ,[\@@@@^
                     =@@@@O       .@@@@@. ,@@@@@^   .@@@@@.   =@@@@^   .@@@@@`,@@@@@^                       ,@@\`...=@@@@@.                    =@@@@^  .,@@@@@^   =@@@@O.........  =@@@@@`../@@@@@.  ,@@@@@@]..=@@@@^
                     =@@@@O       .@@@@@.  ,@@@@@\  .@@@@@.   =@@@@^  ,@@@@@^  ,@@@@@\.                   .@@@@@@@@@@@@@@^                     =@@@@@@@@@@@@@@.   =@@@@@@@@@@@@@.  .\@@@@@@@@@@@@`    ,@@@@@@@@@@@@@^
                     =@@@@O       .@@@@@.   ,@@@@@\ .@@@@@.   =@@@@^ ,@@@@@^    ,@@@@@\.                   .[@@@@@@@@@@[.                      =@@@@@@@@@@@/`     =@@@@@@@@@@@@@.    .\@@@@@@@@`        ,\@@@@@@@@/`

-->                                                                          
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  
T
TRHX 已提交
21
  <title>Windows 系统中 Pygame 的安装 | TRHX&#39;S BLOG</title>
T
TRHX 已提交
22 23
  
  
T
TRHX 已提交
24
  <meta name="description" content="Windows 系统中 Pygame 的安装笔记, 一个大学生用于自学的个人博客">
T
TRHX 已提交
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
  

  <link rel="alternate" href="/atom.xml" title="TRHX'S BLOG">

  <meta name="HandheldFriendly" content="True" />
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <!-- meta -->
  
  
  <meta name="theme-color" content="#f24e32">
  
  <meta name="msapplication-TileColor" content="#f24e32">
  
  <meta name="msapplication-config" content="https://cdn.jsdelivr.net/gh/xaoxuu/assets@18.12.27/favicon/favicons/browserconfig.xml">
  
  
  <!-- link -->
  
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/node-waves@0.7.6/dist/waves.min.css">
  
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.6.3/css/all.min.css">

  
  
T
TRHX 已提交
50
  <link rel="shortcut icon" href="https://cdn.jsdelivr.net/gh/TRHX/CDN-for-itrhx.com@1.1/images/favicon.ico"
T
TRHX 已提交
51 52 53 54 55 56
   type="image/x-icon"
  
  
  
  >
  
T
TRHX 已提交
57
  <link rel="icon" href="https://cdn.jsdelivr.net/gh/TRHX/CDN-for-itrhx.com@1.1/images/favicon-32x32.png"
T
TRHX 已提交
58 59 60 61 62 63
   type="image/x-icon"
   sizes="32x32"
  
  
  >
  
T
TRHX 已提交
64
  <link rel="apple-touch-icon" href="https://cdn.jsdelivr.net/gh/TRHX/CDN-for-itrhx.com@1.1/images/apple-touch-icon.png"
T
TRHX 已提交
65 66 67 68 69 70
   type="image/png"
   sizes="180x180"
  
  
  >
  
T
TRHX 已提交
71
  <link rel="mask-icon" href="https://cdn.jsdelivr.net/gh/TRHX/CDN-for-itrhx.com@1.1/images/trhx.png"
T
TRHX 已提交
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
  
  
  
  
   color="#f24e32">
  
  <link rel="manifest" href="https://cdn.jsdelivr.net/gh/xaoxuu/assets@18.12.27/favicon/favicons/site.webmanifest"
  
  
  
  
  >
  
  

  
  <link rel="stylesheet" href="/style.css">
  

  



  <script>
    function setLoadingBarProgress(num) {
      document.getElementById('loading-bar').style.width=num+"%";
    }
  </script>

  
  
    <!-- ba -->
    <script>
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
T
TRHX 已提交
108
      hm.src = "https://hm.baidu.com/hm.js?df0bc7c6bdbd80356ba4db429724ccad";
T
TRHX 已提交
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
    </script>
  
</head>

<body>
    <div id="loading-bar-wrapper">
  <div id="loading-bar" class="material"></div>
</div>

    <script>setLoadingBarProgress(20)</script>
    <header class="l_header material">
	<div class='wrapper'>
		<div class="nav-main container container--flex">
      <a class="logo flat-box" href='/' >
        
          TRHX'S BLOG
        
      </a>
			<div class='menu'>
				<ul class='h-list'>
          
  					
  						<li>
								<a id="home"
								 class="nav flat-box" href="/">
									<i class='fas fa-home fa-fw'></i>&nbsp;主页
								</a>
							</li>
      			
  						<li>
								<a id="archives"
								 class="nav flat-box" href="/archives/">
									<i class='fas fa-archive fa-fw'></i>&nbsp;归档
								</a>
							</li>
      			
  						<li>
T
TRHX 已提交
149 150
								<a id="friends"
								 class="nav flat-box" href="/friends/">
T
TRHX 已提交
151 152 153 154 155
									<i class='fas fa-users fa-fw'></i>&nbsp;朋友
								</a>
							</li>
      			
  						<li>
T
TRHX 已提交
156 157 158
								<a id="https:love109.cn"
								 class="nav flat-box" href="https://love109.cn/">
									<i class='fas fa-heartbeat fa-fw'></i>&nbsp;情侣博客
T
TRHX 已提交
159 160 161 162 163 164 165 166 167 168 169
								</a>
							</li>
      			
  						<li>
								<a id="https:blog.csdn.netqq_36759224"
								 class="nav flat-box" href="https://blog.csdn.net/qq_36759224/">
									<i class='fab fa-cuttlefish fa-fw'></i>&nbsp;CSDN
								</a>
							</li>
      			
  						<li>
T
TRHX 已提交
170 171
								<a id="about.html"
								 class="nav flat-box" href="/about.html">
T
TRHX 已提交
172 173 174 175
									<i class='fas fa-user-tie fa-fw'></i>&nbsp;关于
								</a>
							</li>
      			
T
TRHX 已提交
176 177 178 179 180 181 182
  						<li>
								<a id="atom.xml"
								 class="nav flat-box" href="/atom.xml">
									<i class='fas fa-rss fa-fw'></i>&nbsp;RSS
								</a>
							</li>
      			
T
TRHX 已提交
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230
      		
				</ul>
			</div>

			
				<div class="m_search">
					<form name="searchform" class="form u-search-form">
						<input type="text" class="input u-search-input" placeholder="搜索" />
						<span class="icon"><i class="fas fa-search fa-fw"></i></span>
					</form>
				</div>
			
			<ul class='switcher h-list'>
				
					<li class='s-search'><a class="fas fa-search fa-fw" href='javascript:void(0)'></a></li>
				
				<li class='s-menu'><a class="fas fa-bars fa-fw" href='javascript:void(0)'></a></li>
			</ul>
		</div>

		<div class='nav-sub container container--flex'>
			<a class="logo flat-box"></a>
			<ul class='switcher h-list'>
				<li class='s-comment'><a class="flat-btn fas fa-comments fa-fw" href='javascript:void(0)'></a></li>
				<li class='s-toc'><a class="flat-btn fas fa-list fa-fw" href='javascript:void(0)'></a></li>
			</ul>
		</div>
	</div>
</header>
	<aside class="menu-phone">
    <header>
		<nav class="menu">
      <ul>
          
              
                  <li>
										<a id="home" class="nav flat-box" href="/">
											<i class='fas fa-home fa-fw'></i>&nbsp;主页
										</a>
                  </li>
              
                  <li>
										<a id="archives" class="nav flat-box" href="/archives/">
											<i class='fas fa-archive fa-fw'></i>&nbsp;归档
										</a>
                  </li>
              
                  <li>
T
TRHX 已提交
231
										<a id="friends" class="nav flat-box" href="/friends/">
T
TRHX 已提交
232 233 234 235 236
											<i class='fas fa-users fa-fw'></i>&nbsp;朋友
										</a>
                  </li>
              
                  <li>
T
TRHX 已提交
237 238
										<a id="https:love109.cn" class="nav flat-box" href="https://love109.cn/">
											<i class='fas fa-heartbeat fa-fw'></i>&nbsp;情侣博客
T
TRHX 已提交
239 240 241 242 243 244 245 246 247 248
										</a>
                  </li>
              
                  <li>
										<a id="https:blog.csdn.netqq_36759224" class="nav flat-box" href="https://blog.csdn.net/qq_36759224/">
											<i class='fab fa-cuttlefish fa-fw'></i>&nbsp;CSDN
										</a>
                  </li>
              
                  <li>
T
TRHX 已提交
249
										<a id="about.html" class="nav flat-box" href="/about.html">
T
TRHX 已提交
250 251 252 253
											<i class='fas fa-user-tie fa-fw'></i>&nbsp;关于
										</a>
                  </li>
              
T
TRHX 已提交
254 255 256 257 258 259
                  <li>
										<a id="atom.xml" class="nav flat-box" href="/atom.xml">
											<i class='fas fa-rss fa-fw'></i>&nbsp;RSS
										</a>
                  </li>
              
T
TRHX 已提交
260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276
       
      </ul>
		</nav>
    </header>
	</aside>

    <script>setLoadingBarProgress(40);</script>
    <div class="l_body">
    <div class='container clearfix'>
        <div class='l_main'>
            <article id="post" class="post white-box article-type-post" itemscope itemprop="blogPost">
  
<section class='meta'>
  
  <div class="meta" id="header-meta">
    
      
T
TRHX 已提交
277
          <h1 class="title">Windows 系统中 Pygame 的安装</h1>
T
TRHX 已提交
278 279 280 281 282
      
    

    
      <time class="metatag time">
T
TRHX 已提交
283
        <i class="fas fa-calendar-alt fa-fw" aria-hidden="true"></i>&nbsp;2019-04-01
T
TRHX 已提交
284 285 286 287 288 289 290
      </time>
    

    
      
    
    <div class='metatag cats'>
T
TRHX 已提交
291
        <i class="fas fa-folder-open fa-fw" aria-hidden="true"></i>&nbsp;<a class="categories" href="/categories/Python/">Python</a>
T
TRHX 已提交
292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311
    </div>


    

    
      
        <div class="metatag browse busuanzi"><i class="fas fa-eye fa-fw" aria-hidden="true"></i>
          &nbsp;<span id="busuanzi_value_page_pv"><i class="fas fa-spinner fa-spin fa-fw" aria-hidden="true"></i></span>
        </div>
      
    

    

  </div>
</section>

    <section class="article typo">
      <div class="article-entry" itemprop="articleBody">
T
TRHX 已提交
312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336
        <blockquote>
<p>Pygame是跨平台Python模块,专为电子游戏设计,可用于管理图形、动画乃至声音,建立在SDL基础上,允许实时电子游戏研发而无需被低级语言(如机器语言和汇编语言)束缚,通过使用Pygame来处理在屏幕上绘制图像等任务,你不用考虑众多繁琐而艰难的编码工作,而是将重点放在程序的高级逻辑上。</p>
</blockquote>
<p>你可以从以下三个地址查找与你运行的Python版本相匹配的Windows安装程序:</p>
<ul>
<li><p><a href="https://bitbucket.org/pygame/pygame/downloads/" target="_blank" rel="noopener">https://bitbucket.org/pygame/pygame/downloads/</a>  (Pygame项目托管在代码分享网站Bitbucket中)</p>
</li>
<li><p><a href="http://www.pygame.org/download.shtml" target="_blank" rel="noopener">http://www.pygame.org/download.shtml</a> (Pygame官网)</p>
</li>
<li><p><a href="https://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame" target="_blank" rel="noopener">https://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame</a> (如果以上两个地址找不到合适的安装程序,推荐去这个)</p>
</li>
</ul>
<p><img src="https://i.loli.net/2019/04/01/5ca2322eef34e.png" alt="pygame"></p>
<p>如果下载的是.exe文件,直接运行它,如果下载的是.whl文件,就需要打开命令窗口,切换到该文件所在的目录,使用pip来运行它:</p>
<p>首先检查电脑是否安装了pip,打开终端窗口,执行如下命令:<br><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">&gt;</span><span class="bash">python -m pip --version</span></span><br></pre></td></tr></table></figure></p>
<p>如果输出版本信息则已安装:<br><figure class="highlight crystal"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">&gt;pip <span class="number">18.1</span> from <span class="symbol">E:</span>\Python\<span class="class"><span class="keyword">lib</span>\<span class="title">site</span>-<span class="title">packages</span>\<span class="title">pip</span> (<span class="title">python</span> 3.6)</span></span><br></pre></td></tr></table></figure></p>
<p>否则请安装pip,访问 <a href="https://bootstrap.pypa.io/get-pip.py" target="_blank" rel="noopener">https://bootstrap.pypa.io/get-pip.py</a> ,如果出现对话框请直接保存文件,如果出现的是get-pip.py的源代码,则需要新建一个get-pip.py文件,将该代码复制粘贴到其中,使用下面的命令运行get-pip.py:<br><figure class="highlight vim"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">&gt;<span class="keyword">python</span> <span class="built_in">get</span>-pip.<span class="keyword">py</span></span><br></pre></td></tr></table></figure></p>
<p>安装完成后可再次使用<code>python -m pip --version</code>命令检查是否成功安装了pip,成功安装pip后,使用以下命令来安装Pygame:<font color="#FF0000">(注意要先cd到你下载的文件的目录)</font><br><figure class="highlight crmsh"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">&gt;python -m pip install --<span class="keyword">user</span> <span class="title">下载的.whl</span>文件名</span><br></pre></td></tr></table></figure></p>
<p>出现以下信息则表示安装成功:<br><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">&gt;</span><span class="bash">Successfully installed 你安装的Pygame版本</span></span><br></pre></td></tr></table></figure></p>
<p>比如我的Python版本是3.6.5,64位的,则需要下载pygame‑1.9.4‑cp36‑cp36m‑win_amd64.whl,该文件保存到了桌面,使用下面的命令安装Pygame:<br><figure class="highlight taggerscript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">C:<span class="symbol">\U</span>sers<span class="symbol">\L</span>enovo&gt;cd desktop</span><br><span class="line"></span><br><span class="line">C:<span class="symbol">\U</span>sers<span class="symbol">\L</span>enovo<span class="symbol">\D</span>esktop&gt;python -m pip install --user pygame‑1.9.4‑cp36‑cp36m‑win_amd64.whl</span><br><span class="line">Processing c:<span class="symbol">\u</span>sers<span class="symbol">\l</span>enovo<span class="symbol">\d</span>esktop<span class="symbol">\p</span>ygame‑1.9.4‑cp36‑cp36m‑win_amd64.whl</span><br><span class="line">Installing collected packages: pygame</span><br><span class="line">Successfully installed pygame‑1.9.4</span><br><span class="line"></span><br><span class="line">C:<span class="symbol">\U</span>sers<span class="symbol">\L</span>enovo&gt;Desktop&gt;</span><br></pre></td></tr></table></figure></p>
<p>检查是否成功安装Pygame:在Python的IDLE里输入<code>import pygame</code>,如果不报错,则安装成功,再输入<code>pygame.ver</code>就能看到版本号:</p>
<p><img src="https://i.loli.net/2019/04/01/5ca2324501cd3.png" alt="pygame"></p>
<p>可能出现的问题:<br>报错:<code>xxxxxxxxxxxxxxxxxxxxxx.whl is not a supported wheel on this platform.</code><br>原因:Python版本与Pygame版本不对应<br>解决方法:Pygame文件名中的cp**表示Python对应的版本,另外并不是你电脑64位则下载64位,要看你安装的Python是否为64位,注意下载对应的版本!</p>
<p>报错:<code>You are using pip version x.x.x, however version x.x.x is available.You should consider upgrading via the &#39;python -m pip install --upgrade pip&#39; command.</code><br>原因:版本需要更新<br>解决方法:输入<code>python -m pip install --upgrade pip</code>命令进行更新即可</p>
<p>Pygame安装完成后我们就可以使用Python来开发游戏啦!</p>
T
TRHX 已提交
337 338 339 340 341

      </div>
        
          <section class='meta' id="footer-meta">
            
T
TRHX 已提交
342 343
              <time class="metatag time" itemprop="dateUpdated" datetime="2019-04-01T23:55:32+08:00" content="2019-04-01"><i class="fas fa-pencil-alt fa-fw" aria-hidden="true"></i>
                &nbsp;2019-04-01
T
TRHX 已提交
344 345 346 347
              </time>
            
            
                
T
TRHX 已提交
348
                <div class="metatag tags"><a class="tag" href="/tags/Pygame/"><i class="fas fa-tag fa-fw" aria-hidden="true"></i>&nbsp;Pygame</a></div> <div class="metatag tags"><a class="tag" href="/tags/Python/"><i class="fas fa-tag fa-fw" aria-hidden="true"></i>&nbsp;Python</a></div>
T
TRHX 已提交
349 350 351 352 353 354 355 356 357 358
            
            
              
  <div class='metatag share -mob-share-list'>
    <i class="left fas fa-share-alt fa-fw" aria-hidden="true"></i>
    <div class="-mob-share-list share-body">
      
        
          <a class="-mob-share-qq" title="分享给QQ好友" rel="external nofollow noopener noreferrer"
            
T
TRHX 已提交
359
            href="http://connect.qq.com/widget/shareqq/index.html?url=https://itrhx.com/2019/04/01/A19-Windows-Installation-Pygame/&title=Windows 系统中 Pygame 的安装 | TRHX'S BLOG&summary="
T
TRHX 已提交
360 361 362 363 364 365 366 367 368 369 370
            
            >
            
              <img src="https://cdn.jsdelivr.net/gh/xaoxuu/assets@19.1.9/logo/128/qq.png">
            
          </a>
        
      
        
          <a class="-mob-share-qzone" title="分享到QQ空间" rel="external nofollow noopener noreferrer"
            
T
TRHX 已提交
371
            href="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=https://itrhx.com/2019/04/01/A19-Windows-Installation-Pygame/&title=Windows 系统中 Pygame 的安装 | TRHX'S BLOG&summary="
T
TRHX 已提交
372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392
            
            >
            
              <img src="https://cdn.jsdelivr.net/gh/xaoxuu/assets@19.1.9/logo/128/qzone.png">
            
          </a>
        
      
        
          <a class="-mob-share-qrcode" title="分享到微信" rel="external nofollow noopener noreferrer"
            
            >
            
              <img src="https://cdn.jsdelivr.net/gh/xaoxuu/assets@19.1.9/logo/128/wechat.png">
            
          </a>
        
      
        
          <a class="-mob-share-weibo" title="分享到微博" rel="external nofollow noopener noreferrer"
            
T
TRHX 已提交
393
            href="http://service.weibo.com/share/share.php?url=https://itrhx.com/2019/04/01/A19-Windows-Installation-Pygame/&title=Windows 系统中 Pygame 的安装 | TRHX'S BLOG&summary="
T
TRHX 已提交
394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422
            
            >
            
              <img src="https://cdn.jsdelivr.net/gh/xaoxuu/assets@19.1.9/logo/128/weibo.png">
            
          </a>
        
      
        
          <a class="-mob-share-qrcode" title="QRcode" rel="external nofollow noopener noreferrer"
            
            >
            
              <img src="https://cdn.jsdelivr.net/gh/xaoxuu/assets@19.1.9/logo/128/qrcode.png">
            
          </a>
        
      
    </div>
  </div>


            
          </section>
        

        
            <div class="prev-next">
                
T
TRHX 已提交
423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441
                    <section class="prev">
                        <span class="art-item-left">
                            <h6><i class="fas fa-chevron-left" aria-hidden="true"></i>&nbsp;上一页</h6>
                            <h4>
                                <a href="/2019/04/14/A20-VMwarePro15-Installation-of-Deepin15.9-tutorial/" rel="prev" title="VMware Pro 15 安装 Deepin15.9 国产操作系统">
                                  
                                      VMware Pro 15 安装 Deepin15.9 国产操作系统
                                  
                                </a>
                            </h4>
                            
                                
                                <h6 class="tags">
                                    <a class="tag" href="/tags/VMware/"><i class="fas fa-tag fa-fw" aria-hidden="true"></i>VMware</a> <a class="tag" href="/tags/Deepin/"><i class="fas fa-tag fa-fw" aria-hidden="true"></i>Deepin</a>
                                </h6>
                            
                        </span>
                    </section>
                
T
TRHX 已提交
442 443 444 445 446
                
                    <section class="next">
                        <span class="art-item-right" aria-hidden="true">
                            <h6>下一页&nbsp;<i class="fas fa-chevron-right" aria-hidden="true"></i></h6>
                            <h4>
T
TRHX 已提交
447
                                <a href="/2019/02/10/A18-Free-CDN-jsDeliver+Github/" rel="prev" title="免费CDN:jsDeliver+Github">
T
TRHX 已提交
448
                                    
T
TRHX 已提交
449
                                        免费CDN:jsDeliver+Github
T
TRHX 已提交
450 451 452 453 454 455
                                    
                                </a>
                            </h4>
                            
                                
                                <h6 class="tags">
T
TRHX 已提交
456
                                    <a class="tag" href="/tags/jsDeliver/"><i class="fas fa-tag fa-fw" aria-hidden="true"></i>jsDeliver</a> <a class="tag" href="/tags/CDN/"><i class="fas fa-tag fa-fw" aria-hidden="true"></i>CDN</a>
T
TRHX 已提交
457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487
                                </h6>
                            
                        </span>
                    </section>
                
            </div>
        

    </section>

</article>

<!-- 根据页面mathjax变量决定是否加载MathJax数学公式js -->


<br>

<!-- 显示推荐文章和评论 -->



  <article class="post white-box comments">
    <section class="article typo">

      
        

    <div class="recommended_posts">
        <h4><i class="fas fa-bookmark fa-fw" aria-hidden="true"></i>&nbsp;相关文章</h4>
        <ul>
            
T
TRHX 已提交
488 489
                <li><a href="https://itrhx.com/2019/04/15/A21-PEP8/">Python PEP8 代码规范常见问题及解决方法</a></li>
            
T
TRHX 已提交
490 491
                <li><a href="https://itrhx.com/2019/04/14/A20-VMwarePro15-Installation-of-Deepin15.9-tutorial/">VMware Pro 15 安装 Deepin15.9 国产操作系统</a></li>
            
T
TRHX 已提交
492
                <li><a href="https://itrhx.com/2019/02/10/A18-Free-CDN-jsDeliver+Github/">免费CDN:jsDeliver+Github</a></li>
T
TRHX 已提交
493
            
T
TRHX 已提交
494
                <li><a href="https://itrhx.com/2019/02/05/A17-Happy-new-year/">新年快乐!</a></li>
T
TRHX 已提交
495 496 497 498 499 500 501 502 503 504 505 506
            
        </ul>
    </div>


      

      
        <h4><i class="fas fa-comments fa-fw" aria-hidden="true"></i>&nbsp;评论</h4>
        
        
        
T
TRHX 已提交
507 508 509 510 511 512 513
          
            <section id="comments">
              <div id="valine_container" class="valine_thread">
                <i class="fas fa-spinner fa-spin fa-fw"></i>
              </div>
            </section>
          
T
TRHX 已提交
514 515 516 517 518 519 520 521 522
        
      
    </section>
  </article>



<script>
    window.subData = {
T
TRHX 已提交
523
        title: 'Windows 系统中 Pygame 的安装',
T
TRHX 已提交
524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540
        tools: true
    }
</script>


        </div>
        <aside class='l_side'>
            
  
  
    
      
      
        <section class='author'>
  <div class='content material'>
    
      <div class='avatar'>
T
TRHX 已提交
541
        <img class='avatar' src='https://cdn.jsdelivr.net/gh/TRHX/CDN-for-itrhx.com@1.1/images/trhx.png'/>
T
TRHX 已提交
542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567
      </div>
    
    
      <div class='text'>
        
          <h2>TRHX'S BLOG</h2>
        
        
          <p>求知若饥 虚心若愚</p>

        
        
      </div>
    
    
      <div class="social-wrapper">
        
          
            <a href="https://github.com/TRHX" class="social flat-btn" target="_blank" rel="external"><i class="social fab fa-github" aria-hidden="true"></i></a>
          
        
          
            <a href="https://www.zhihu.com/people/tan-70-56/activities" class="social flat-btn" target="_blank" rel="external"><i class="social fab fa-zhihu" aria-hidden="true"></i></a>
          
        
          
T
TRHX 已提交
568
            <a href="mailto:admin@itrhx.com" class="social flat-btn" target="_blank" rel="external"><i class="social fas fa-envelope" aria-hidden="true"></i></a>
T
TRHX 已提交
569 570 571 572 573 574 575 576 577 578 579 580
          
        
          
            <a href="http://wpa.qq.com/msgrd?v=3&uin=2273902448&site=qq&menu=yes" class="social flat-btn" target="_blank" rel="external"><i class="social fab fa-qq" aria-hidden="true"></i></a>
          
        
          
            <a href="http://weibo.com/TRHX1" class="social flat-btn" target="_blank" rel="external"><i class="social fab fa-weibo" aria-hidden="true"></i></a>
          
        
      </div>
    
T
TRHX 已提交
581 582 583 584 585 586 587 588
    <div id="binft" align="center"></div>
    <script>
      var binft = function (r) {
        function t() {
          return b[Math.floor(Math.random() * b.length)]
        }  
        function e() {
          return String.fromCharCode(94 * Math.random() + 33)
T
TRHX 已提交
589
        }
T
TRHX 已提交
590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623
        function n(r) {
          for (var n = document.createDocumentFragment(), i = 0; r > i; i++) {
            var l = document.createElement("span");
            l.textContent = e(), l.style.color = t(), n.appendChild(l)
          }
          return n
        }
        function i() {
          var t = o[c.skillI];
          c.step ? c.step-- : (c.step = g, c.prefixP < l.length ? (c.prefixP >= 0 && (c.text += l[c.prefixP]), c.prefixP++) : "forward" === c.direction ? c.skillP < t.length ? (c.text += t[c.skillP], c.skillP++) : c.delay ? c.delay-- : (c.direction = "backward", c.delay = a) : c.skillP > 0 ? (c.text = c.text.slice(0, -1), c.skillP--) : (c.skillI = (c.skillI + 1) % o.length, c.direction = "forward")), r.textContent = c.text, r.appendChild(n(c.prefixP < l.length ? Math.min(s, s + c.prefixP) : Math.min(s, t.length - c.skillP))), setTimeout(i, d)
        }
        var l = "",
        o = ["青青陵上柏,磊磊涧中石。", "人生天地间,忽如远行客。","斗酒相娱乐,聊厚不为薄。", "驱车策驽马,游戏宛与洛。","洛中何郁郁,冠带自相索。","长衢罗夹巷,王侯多第宅。","两宫遥相望,双阙百余尺。","极宴娱心意,戚戚何所迫?"].map(function (r) {
        return r + ""
        }),
        a = 2,
        g = 1,
        s = 5,
        d = 75,
        b = ["rgb(110,64,170)", "rgb(150,61,179)", "rgb(191,60,175)", "rgb(228,65,157)", "rgb(254,75,131)", "rgb(255,94,99)", "rgb(255,120,71)", "rgb(251,150,51)", "rgb(226,183,47)", "rgb(198,214,60)", "rgb(175,240,91)", "rgb(127,246,88)", "rgb(82,246,103)", "rgb(48,239,130)", "rgb(29,223,163)", "rgb(26,199,194)", "rgb(35,171,216)", "rgb(54,140,225)", "rgb(76,110,219)", "rgb(96,84,200)"],
        c = {
          text: "",
          prefixP: -s,
          skillI: 0,
          skillP: 0,
          direction: "forward",
          delay: a,
          step: g
        };
        i()
        };
        binft(document.getElementById('binft'));
    </script>
  </div>
T
TRHX 已提交
624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715
</section>

      
    
  
    
      
      
        <section class='plain'>
  
<header class='material'>
  <div><i class="fas fa-edit fa-fw" aria-hidden="true"></i>&nbsp;&nbsp;域名转让</div>
  
</header>

  <div class='content material'>
    <p>以下闲置域名低价转让,音译我爱BUG,价格非常美丽,给钱就扔,欢迎骚扰:<br><center>52bug.club<br>52bug.xyz<br>52bug.top</center></p>

  </div>
</section>

      
    
  
    
      
      
        <section class='plain'>
  
<header class='material'>
  <div><i class="fas fa-edit fa-fw" aria-hidden="true"></i>&nbsp;&nbsp;今日诗词</div>
  
    <a class="rightBtn rotate90" target="_blank"
    rel="external nofollow noopener noreferrer"
    href="https://www.jinrishici.com/"
    title="https://www.jinrishici.com/">
    <i class="far fa-paper-plane fa-fw"></i></a>
  
</header>

  <div class='content material'>
    <p><img src="https://v2.jinrishici.com/one.svg" alt="今日诗词"></p>

  </div>
</section>

      
    
  
    
      
      
        <section class='plain'>
  
<header class='material'>
  <div><i class="fas fa-bullhorn fa-fw" aria-hidden="true"></i>&nbsp;&nbsp;注意啦~</div>
  
    <a class="rightBtn rotate90" target="_blank"
    rel="external nofollow noopener noreferrer"
    href="https://xaoxuu.com/wiki/material-x/"
    title="https://xaoxuu.com/wiki/material-x/">
    <i class="fas fa-question-circle fa-fw"></i></a>
  
</header>

  <div class='content material'>
    <p>本站使用 <a href="https://xaoxuu.com/wiki/material-x/">Material X</a> 作为主题,喜欢这个主题的朋友可以阅读文档进行安装哦,超喜欢的话还可以安利给身边的朋友哦~<br><br><font color=#FF0000>Tip:电脑端访问本站效果更佳!</font></p>

  </div>
</section>

      
    
  
    
      
      
        
  <section class='category'>
    
<header class='material'>
  <div><i class="fas fa-folder-open fa-fw" aria-hidden="true"></i>&nbsp;&nbsp;所有分类</div>
  
</header>

    <div class='content material'>
      <ul class="entry">
        
          <li><a class="flat-box" title="/categories/BLOG/" href="/categories/BLOG/"><div class='name'>BLOG</div><div class='badge'>(2)</div></a></li>
        
          <li><a class="flat-box" title="/categories/CDN/" href="/categories/CDN/"><div class='name'>CDN</div><div class='badge'>(1)</div></a></li>
        
T
TRHX 已提交
716
          <li><a class="flat-box" title="/categories/Python/" href="/categories/Python/"><div class='name'>Python</div><div class='badge'>(11)</div></a></li>
T
TRHX 已提交
717
        
T
TRHX 已提交
718
          <li><a class="flat-box" title="/categories/实用教程/" href="/categories/实用教程/"><div class='name'>实用教程</div><div class='badge'>(7)</div></a></li>
T
TRHX 已提交
719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739
        
      </ul>
    </div>
  </section>


      
    
  
    
      
      
        
  <section class='tagcloud'>
    
<header class='material'>
  <div><i class="fas fa-fire fa-fw" aria-hidden="true"></i>&nbsp;&nbsp;热门标签</div>
  
</header>

    <div class='content material'>
T
TRHX 已提交
740
      <a href="/tags/BLOG/" style="font-size: 19px; color: #777">BLOG</a> <a href="/tags/CDN/" style="font-size: 14px; color: #999">CDN</a> <a href="/tags/Deepin/" style="font-size: 14px; color: #999">Deepin</a> <a href="/tags/Github/" style="font-size: 14px; color: #999">Github</a> <a href="/tags/Github-Pages/" style="font-size: 14px; color: #999">Github Pages</a> <a href="/tags/Hexo/" style="font-size: 24px; color: #555">Hexo</a> <a href="/tags/Markdown/" style="font-size: 19px; color: #777">Markdown</a> <a href="/tags/PEP8/" style="font-size: 14px; color: #999">PEP8</a> <a href="/tags/Pygame/" style="font-size: 14px; color: #999">Pygame</a> <a href="/tags/Python/" style="font-size: 19px; color: #777">Python</a> <a href="/tags/Ubuntu/" style="font-size: 14px; color: #999">Ubuntu</a> <a href="/tags/VMware/" style="font-size: 19px; color: #777">VMware</a> <a href="/tags/if语句/" style="font-size: 14px; color: #999">if语句</a> <a href="/tags/input-函数/" style="font-size: 14px; color: #999">input()函数</a> <a href="/tags/jsDeliver/" style="font-size: 14px; color: #999">jsDeliver</a> <a href="/tags/while循环/" style="font-size: 14px; color: #999">while循环</a> <a href="/tags/主题个性化/" style="font-size: 14px; color: #999">主题个性化</a> <a href="/tags/函数/" style="font-size: 14px; color: #999">函数</a> <a href="/tags/列表/" style="font-size: 14px; color: #999">列表</a> <a href="/tags/变量/" style="font-size: 14px; color: #999">变量</a> <a href="/tags/字典/" style="font-size: 14px; color: #999">字典</a> <a href="/tags/异常/" style="font-size: 14px; color: #999">异常</a> <a href="/tags/技巧/" style="font-size: 14px; color: #999">技巧</a> <a href="/tags/操作列表/" style="font-size: 14px; color: #999">操作列表</a> <a href="/tags/数据类型/" style="font-size: 14px; color: #999">数据类型</a> <a href="/tags/文件/" style="font-size: 14px; color: #999">文件</a> <a href="/tags/模块/" style="font-size: 14px; color: #999">模块</a> <a href="/tags/类/" style="font-size: 14px; color: #999"></a> <a href="/tags/继承/" style="font-size: 14px; color: #999">继承</a> <a href="/tags/编辑器/" style="font-size: 14px; color: #999">编辑器</a>
T
TRHX 已提交
741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874
    </div>
  </section>


      
    
  
    
      
      
        <section class='list'>
  
<header class='material'>
  <div><i class="fas fa-link fa-fw" aria-hidden="true"></i>&nbsp;&nbsp;特别链接</div>
  
</header>

  <div class='content material'>
    <ul class="entry">
      
        <li><a class="flat-box" title="http://space.bilibili.com/314463806?/" href="http://space.bilibili.com/314463806?/">
          <div class='name'>
            
              <i class="fas fa-film fa-fw" aria-hidden="true"></i>
            
            &nbsp;&nbsp;bilibili
          </div>
          
            <div class='badge'>(博主的主页)</div>
          
        </a></li>
      
        <li><a class="flat-box" title="https://xaoxuu.com/wiki/material-x/" href="https://xaoxuu.com/wiki/material-x/">
          <div class='name'>
            
              <i class="fas fa-cube fa-fw" aria-hidden="true"></i>
            
            &nbsp;&nbsp;Material X
          </div>
          
            <div class='badge'>(Hexo博客主题)</div>
          
        </a></li>
      
        <li><a class="flat-box" title="https://hexo.io/zh-cn/" href="https://hexo.io/zh-cn/">
          <div class='name'>
            
              <i class="fas fa-blog fa-fw" aria-hidden="true"></i>
            
            &nbsp;&nbsp;Hexo
          </div>
          
            <div class='badge'>(Hexo官网)</div>
          
        </a></li>
      
    </ul>
  </div>
</section>

      
    
  
    
      
      
        


  <section class='music'>
    
<header class='material'>
  <div><i class="fas fa-compact-disc fa-fw" aria-hidden="true"></i>&nbsp;&nbsp;音乐</div>
  
    <a class="rightBtn rotate90" target="_blank"
    rel="external nofollow noopener noreferrer"
    href="https://music.163.com/#/playlist?id=2415512873"
    title="https://music.163.com/#/playlist?id=2415512873">
    <i class="far fa-heart fa-fw"></i></a>
  
</header>

    <div class='content material'>
      
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer@1.7.0/dist/APlayer.min.css">
  <div class="aplayer"
    data-theme="#1BCDFC"
    
    
    data-mode="circulation"
    data-server="netease"
    data-type="playlist"
    data-id="2625522030"
    data-volume="0.7">
  </div>
  <script src="https://cdn.jsdelivr.net/npm/aplayer@1.7.0/dist/APlayer.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/meting@1.1.0/dist/Meting.min.js"></script>


    </div>
  </section>


      
    
  
    
      
      
        

      
    
  


        </aside>
        <script>setLoadingBarProgress(60);</script>
    </div>
    <a class="s-top fas fa-arrow-up fa-fw" href='javascript:void(0)'></a>
    </div>
    <footer id="footer" class="clearfix">
  
    <div class="social-wrapper">
      
        
          <a href="https://github.com/TRHX" class="social fab fa-github flat-btn" target="_blank" rel="external"></a>
        
      
        
          <a href="https://www.zhihu.com/people/tan-70-56/activities" class="social fab fa-zhihu flat-btn" target="_blank" rel="external"></a>
        
      
        
T
TRHX 已提交
875
          <a href="mailto:admin@itrhx.com" class="social fas fa-envelope flat-btn" target="_blank" rel="external"></a>
T
TRHX 已提交
876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893
        
      
        
          <a href="http://wpa.qq.com/msgrd?v=3&amp;uin=2273902448&amp;site=qq&amp;menu=yes" class="social fab fa-qq flat-btn" target="_blank" rel="external"></a>
        
      
        
          <a href="http://weibo.com/TRHX1" class="social fab fa-weibo flat-btn" target="_blank" rel="external"></a>
        
      
    </div>
  
  <br>
    <!-- 网站运行时间 -->
    <span id="timeDate">正在载入...</span><span id="times"><span><i class="fa fa-spinner fa-spin"> </i></span></span>
    <script>
        var now = new Date(); 
        function createtime() { 
T
TRHX 已提交
894
            var grt= new Date("08/10/2018 17:38:00");//建站时间2018-08-10
T
TRHX 已提交
895 896 897 898 899 900 901 902 903 904 905 906
            now.setTime(now.getTime()+250); 
            days = (now - grt ) / 1000 / 60 / 60 / 24; dnum = Math.floor(days); 
            hours = (now - grt ) / 1000 / 60 / 60 - (24 * dnum); hnum = Math.floor(hours); 
            if(String(hnum).length ==1 ){hnum = "0" + hnum;} minutes = (now - grt ) / 1000 /60 - (24 * 60 * dnum) - (60 * hnum); 
            mnum = Math.floor(minutes); if(String(mnum).length ==1 ){mnum = "0" + mnum;} 
            seconds = (now - grt ) / 1000 - (24 * 60 * 60 * dnum) - (60 * 60 * hnum) - (60 * mnum); 
            snum = Math.round(seconds); if(String(snum).length ==1 ){snum = "0" + snum;} 
            document.getElementById("timeDate").innerHTML = "本站已勉强存活了 "
            document.getElementById("times").innerHTML = dnum +"" + hnum + " 小时 " + mnum + "" + snum + ""; 
            document.getElementById("times").style.color="#00ccff";
        }
        setInterval("createtime()",250);
T
TRHX 已提交
907
    </script>&nbsp;&nbsp;|&nbsp;&nbsp;
T
TRHX 已提交
908
    <!--<i class="fa fa-user"></i>-->
T
TRHX 已提交
909
    <span id="busuanzi_container_site_uv">UV:<span id="busuanzi_value_site_uv" style="color:#00ccff"></span></span>&nbsp;&nbsp;|&nbsp;&nbsp;
T
TRHX 已提交
910
    <!--<i class="fa fa-eye"></i>-->
T
TRHX 已提交
911
    <span id="busuanzi_container_site_pv">PV:<span id="busuanzi_value_site_pv" style="color:#00ccff"></span></span>&nbsp;&nbsp;|&nbsp;&nbsp;
T
TRHX 已提交
912
    <!--<i class="fas fa-chart-area"></i>-->
T
TRHX 已提交
913
    <span class="post-count">Word Count:<a style="color:#00ccff"> 41.4k</a></span>&nbsp;&nbsp;|&nbsp;&nbsp;
T
TRHX 已提交
914
    <script type="text/javascript" src="https://s23.cnzz.com/z_stat.php?id=1275909280&web_id=1275909280"></script>&nbsp;&nbsp;|&nbsp;&nbsp;
T
TRHX 已提交
915
    <a href="https://itrhx.com/sitemap.xml" target="_blank">站点地图</a><br>
T
TRHX 已提交
916 917
    
  Copyright <i class="far fa-copyright"></i> 2018-2019
T
TRHX 已提交
918
  <a href="http://itrhx.com" target="_blank"> TRHX&#39;BLOG </a>&nbsp;&nbsp;|&nbsp;&nbsp;
T
TRHX 已提交
919
  <a href="http://www.miitbeian.gov.cn/" target="_blank">鄂ICP备19003281号-3</a>&nbsp;&nbsp;|&nbsp;&nbsp;
T
TRHX 已提交
920 921 922
  Powered by <a href="https://hexo.io/zh-cn/" target="_blank" class="codename">Hexo</a> 
  Theme <a href="https://xaoxuu.com/wiki/material-x/" target="_blank" class="codename">Material X</a> by <a href="https://xaoxuu.com/" target="_blank" class="codename">xaoxuu</a>&nbsp;&nbsp;|&nbsp;&nbsp;
  <i class="fab fa-creative-commons"></i> <a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh" title="本站点采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议进行许可" target="_blank">CC BY-NC-SA 4.0 International</a>
T
TRHX 已提交
923 924 925

  <a target="_blank" href="http://join.foreverblog.cn" style="position:fixed;z-index:999;right:-5px;bottom: 25px;display: inline-block;width: 35px;border-radius: 5px;color:white;font-size:14px;line-height:17px;background: #1BC3FB;box-shadow: 0 0 5px #666;word-wrap: break-word;padding: 10px 6px;border: 2px solid white;">十年之约</a>

T
TRHX 已提交
926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992
</footer>
    <script>setLoadingBarProgress(80);</script>
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js"></script>

  <script>
    var GOOGLE_CUSTOM_SEARCH_API_KEY = "";
    var GOOGLE_CUSTOM_SEARCH_ENGINE_ID = "";
    var ALGOLIA_API_KEY = "";
    var ALGOLIA_APP_ID = "";
    var ALGOLIA_INDEX_NAME = "";
    var AZURE_SERVICE_NAME = "";
    var AZURE_INDEX_NAME = "";
    var AZURE_QUERY_KEY = "";
    var BAIDU_API_ID = "";
    var SEARCH_SERVICE = "hexo" || "hexo";
    var ROOT = "/"||"/";
    if(!ROOT.endsWith('/'))ROOT += '/';
  </script>


  
    <script src="https://cdn.jsdelivr.net/npm/scrollreveal@4.0.5/dist/scrollreveal.min.js"></script>
    <script type="text/javascript">
      $(function() {
        const $reveal = $('.reveal');
    		if ($reveal.length === 0) return;
    		const sr = ScrollReveal({ distance: 0 });
    		sr.reveal('.reveal');
      });
    </script>
  
  
    <script src="https://cdn.jsdelivr.net/npm/node-waves@0.7.6/dist/waves.min.js"></script>
    <script type="text/javascript">
      $(function() {
        Waves.attach('.flat-btn', ['waves-button']);
        Waves.attach('.float-btn', ['waves-button', 'waves-float']);
        Waves.attach('.float-btn-light', ['waves-button', 'waves-float', 'waves-light']);
        Waves.attach('.flat-box', ['waves-block']);
        Waves.attach('.float-box', ['waves-block', 'waves-float']);
        Waves.attach('.waves-image');
        Waves.init();
      });
    </script>
  
  
    <script async src="https://cdn.jsdelivr.net/gh/xaoxuu/cdn-busuanzi@2.3/js/busuanzi.pure.mini.js"></script>
  
  
    <!-- fastclick -->
    <script src="https://cdn.jsdelivr.net/npm/fastclick@1.0.6/lib/fastclick.min.js"></script>
    <script>
      document.addEventListener('DOMContentLoaded', function() {
        FastClick.attach(document.body)
      }, false)
    </script>
  
  


  
  
  
    
      
      
      
T
TRHX 已提交
993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023
        
          <script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
          
            
              <script src="/js/volantis.js"></script>
            
          
          <script>
          var GUEST_INFO = ['nick','mail','link'];
          var guest_info = 'nick,mail,link'.split(',').filter(function(item){
            return GUEST_INFO.indexOf(item) > -1
          });
          var notify = 'false' == true;
          var verify = 'false' == true;
          var valine = new Valine();
          valine.init({
            el: '#valine_container',
            notify: notify,
            verify: verify,
            guest_info: guest_info,
            
            appId: "aJ3jhdiPctRrWPc2eWbHESTg-gzGzoHsz",
            appKey: "RStUacptcCPGqFk7zmrBUXLM",
            placeholder: "快来评论吧😀~",
            pageSize:'10',
            avatar:'monsterid',
            lang:'zh-cn',
            highlight:''
          })
          </script>
        
T
TRHX 已提交
1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040
      
    
  
  
    <script src="/js/app.js"></script>
<script src="/js/search.js"></script>
  






    <script>setLoadingBarProgress(100);</script>
</body>
</html>

T
TRHX 已提交
1041 1042 1043
<!--背景彩带-->
<script src="https://g.joyinshare.com/hc/piao.js" type="text/javascript"></script>

T
TRHX 已提交
1044
<!-- 单击显示文字 -->
T
TRHX 已提交
1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083
<script type="text/javascript" src="/js/ClickShowText.js"></script>

<!-- 浏览器搞笑标题 -->
<script type="text/javascript" src="/js/FunnyTitle.js"></script>

<!-- 雪花特效 
<script type="text/javascript" src="/js/snow.js"></script>
-->

<!-- 网页内容复制提示 
<script type="text/javascript">
    document.body.oncopy=function(){alert("TRHX'S BLOG:复制成功!如需转载文章请注意声明原文出处,感谢您的支持o(∩_∩)o!");}
</script>
-->

<!-- 动态线条背景
<script type="text/javascript"
color="220,220,220" opacity='0.7' zIndex="-2" count="200" src="//cdn.bootcss.com/canvas-nest.js/1.0.0/canvas-nest.min.js">
</script>
-->

<!-- 心知天气插件 -->
<!-- https://www.seniverse.com/widget/get 
<script>(function(T,h,i,n,k,P,a,g,e){g=function(){P=h.createElement(i);a=h.getElementsByTagName(i)[0];P.src=k;P.charset="utf-8";P.async=1;a.parentNode.insertBefore(P,a)};T["ThinkPageWeatherWidgetObject"]=n;T[n]||(T[n]=function(){(T[n].q=T[n].q||[]).push(arguments)});T[n].l=+new Date();if(T.attachEvent){T.attachEvent("onload",g)}else{T.addEventListener("load",g,false)}}(window,document,"script","tpwidget","//widget.seniverse.com/widget/chameleon.js"))</script>
<script>tpwidget("init", {
    "flavor": "bubble",
    "location": "WX4FBXXFKE4F",
    "geolocation": "enabled",
    "position": "top-left",
    "margin": "0px 0px",
    "language": "zh-chs",
    "unit": "c",
    "theme": "chameleon",
    "uid": "U3A639EE85",
    "hash": "e6276cdeeaf5b49cabca7dee59b30862"
});
tpwidget("show");</script>
-->

T
TRHX 已提交
1084
<!-- 鼠标点击烟花爆炸效果 
T
TRHX 已提交
1085 1086
<canvas class="fireworks" style="position: fixed;left: 0;top: 0;z-index: 1; pointer-events: none;" ></canvas> 
<script type="text/javascript" src="//cdn.bootcss.com/animejs/2.2.0/anime.min.js"></script> 
T
TRHX 已提交
1087 1088
<script type="text/javascript" src="/js/fireworks.js"></script>
-->