03 2022 档案

摘要:需求分析: 有两种写法: 1. 随机生成三个数字,再随机生成3个字母,两个相加变成密码 a = random.sample(string.digits,3) b = random,sample(string,ascii_letters,3) password = "".join(a+b) 2.随机生 阅读全文
posted @ 2022-03-02 16:51 青青子佩- 阅读(253) 评论(0) 推荐(0)
摘要:引用自:https://www.macwk.com/article/jetbrains-crack 我自己常用的一种方法:插件市场安装 在 Settings/Preferences... -> Plugins 内手动添加第三方插件仓库地址:https://plugins.zhile.io 搜索:ID 阅读全文
posted @ 2022-03-02 11:20 青青子佩- 阅读(234) 评论(0) 推荐(0)
摘要:# 1. 简单直接粗暴的方式 # f = open("stus.txt",encoding="utf-8") # content = f.read() # content = content.upper() #把字母都变成大写 # f.close() # # f = open("stus.txt", 阅读全文
posted @ 2022-03-01 23:25 青青子佩- 阅读(110) 评论(0) 推荐(0)
摘要:import random import string print(random.randint(1,100)) #产生1——100的随机整数 print(random.choice(["q",'mpp',1,100,999])) #随机选择一个,传list或字符串 print(random.sam 阅读全文
posted @ 2022-03-01 22:56 青青子佩- 阅读(76) 评论(0) 推荐(0)
摘要:需求分析: import time file_name = "access.log" point = 0 while True: ips = {} f = open(file_name,encoding="utf-8") f.seek(point) for line in f: if line.st 阅读全文
posted @ 2022-03-01 22:39 青青子佩- 阅读(120) 评论(0) 推荐(0)