开始我们的项目 飞机大战 1 项目的初体验 以及前期准备 1. 游戏初体验画面 2. 验证一下本地第三方包有没有导入 3. 开始搭建目录结构 创建主程序 导入素材图片,新建 名为:“飞机大战‘项目 建立主程序员 ganme_main.py 把素材图片都导入到项目文件夹中 4. 游戏的逻辑 主要的逻辑 ...
分类:
编程语言 时间:
2020-03-17 08:04:32
阅读次数:
62
selenium中的Exception解释 exception selenium.common.exceptions.ElementClickInterceptedException(msg=None, screen=None, stacktrace=None) 元素被遮盖导致无法取到 except ...
分类:
其他好文 时间:
2020-03-17 00:06:04
阅读次数:
73
html: <button id="showToast">此按钮是测试toast的例子</button> CSS: /*手机*/ @media screen and (max-width:600px) { /* toast start */ @-webkit-keyframes toastAnima ...
分类:
其他好文 时间:
2020-03-15 18:54:16
阅读次数:
61
打开终端,输入命令: gnome-screenshot --help 来阅读gnome-screenshot的各种使用方法 截取屏幕的图片默认保存在用户目录下的图片文件夹中(由于我已经安装了中文支持,因此文件夹名为‘图片’) cd ~/图片 个人认为最好用的一个就是 gnome-screenshot ...
分类:
系统相关 时间:
2020-03-14 19:50:41
阅读次数:
69
import turtle L=50 N=6 jiaodu=180-360/(N) tl=turtle.Turtle() #tl.speed(0)tl.screen.delay(0) def f1(): tl.fillcolor("yellow") tl.begin_fill() for i in ...
分类:
其他好文 时间:
2020-03-14 00:45:44
阅读次数:
89
```bash#盘符切换 D:#查看当前目录下的所有文件 dir#切换目录 cd (change directory)cd..#清理屏幕 cls (clear screen)#推出终端 exit#查看电脑的ip ipconfig#打开应用 calc 计算器 mspaint 画图软件 notepad ... ...
Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Note:You may assume k is always valid, 1 ≤ k ≤ BST's ...
分类:
其他好文 时间:
2020-03-12 10:13:11
阅读次数:
82
from selenium import webdriver import time ''' 本篇主要讲如何用Python调用webdriver框架的API,对浏览器做一些常规的操作,如打开、前进、后退、刷新、设置窗口大小、截屏、退出等操作。 ''' driver = webdriver.Chrom ...
分类:
其他好文 时间:
2020-03-11 10:42:30
阅读次数:
61
计算方法 计算rem方法: 结合媒体查询 -> 随着设备的改变 更改html font-size的值。 ? 媒体查询确定范围?? ? 移动端设计图 : 640px 750px 1080px; dpr 2 2 3 范围 320px 375px @media screen and (max-width: ...
分类:
其他好文 时间:
2020-03-11 01:07:15
阅读次数:
253
<style> /*手机*/ @media screen and (max-width:600px){ .box_2 { padding-top: 45px; padding-bottom: 50px; /* background: #fff; */ /* 添加背景图片 */ background- ...
分类:
移动开发 时间:
2020-03-10 16:01:01
阅读次数:
63