- 博客(10)
- 收藏
- 关注
转载 Linux软硬链接的用法
gerp :软硬链接gerp -s 1.txt 2.txt 软连接,相当于Windows的快捷方式gerp 1.txt 2.txt 硬链接,相当于直接复制了一份原文件
2019-03-24 20:31:43
192
原创 Linux代码
sudo useradd -d /home/abc abc -m 创建用户sudo userdel -r abc 删除用户whoami 查看当前用户who 查看登录账户who -u 显示留标题exit 退出登录账户useradd 添加用户账号useradd -m 自动建立目录useradd -g 指定组目录useradd -d /home/abc abc -m代码 ...
2019-03-24 19:59:33
241
原创 表示数量匹配多个字符的相关格式
字符功能*匹配前一个字符出现0次或者无限次,即可有可无+匹配前一个字符出现1次或者无限次,即至少有1次?匹配前一个字符出现1次或者0次,即要么有1次,要么没有{m}匹配前一个字符出现m次{m,}匹配前一个字符至少出现m次{m,n}匹配前一个字符出现从m到n次...
2019-01-06 20:06:55
393
原创 元则符号
.匹配任意1个字符(除了\n)[ ]匹配[ ]中列举的字符\d匹配数字,即0-9\D匹配非数字,即不是数字\s匹配空白,即 空格,tab键\S匹配非空白\w匹配单词字符,即a-z、A-Z、0-9、_\W匹配非单词字符...
2019-01-06 20:05:56
287
原创 plane_sprites.py
def aa()# print(‘aaa’) # if name ==‘main’# print(‘111’) import pygameSCREEN_RE
2019-01-06 20:04:42
1247
原创 飞机大战运行
import pygameclass GameSprite(pygame.sprite.Sprite): def init(self.image_name,Speed = 1): # 当发生继承时,不论父级是否有init方法,只要子类 # 定义了init方法,那么一定要在子类的init方法中 # 通过super(...
2019-01-06 20:03:25
219
原创 Background.py
from GameSprite import GameSpriteclass BackGround(GameSprite): def init(self,is_alt=False): super().init(’./images/background.png’) if is_alt: self.rec...
2019-01-06 20:02:45
192
原创 飞机大战前篇
import pygameform plane_sprites import *form Background import Backgroundclass Plane_main(object): def init(self): print(‘游戏初始化’) self.screen = pygame.display.set_mode(SCREEN_RECT.size) self.clock ...
2019-01-06 20:02:06
201
原创 163邮箱注册
import rewhile True:user = input(‘请输入您的邮箱:’)ret = re.match(’\w{4,9}@163.com’,user)if ret==None:print(‘邮箱格式不正确!’)else:print(‘注册成功!’)breakwhile True:# user = input(‘请输入您创建的邮箱:’) # ret = ...
2019-01-06 19:59:10
9217
原创 python基础
num = 0for a in range(1,5):for b in range(1,5):for c in range(1,5):if a != b and b != c and c != a:num += 1print(a,b,c)for m in range(100,1000):for a in range(1,10):for b in range(0,10):for ...
2018-12-03 08:12:50
316
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅