- 博客(11)
- 收藏
- 关注
原创 Excel数据的读取与去重
data.drop_duplicates(subset=['关键词'], keep='last', inplace=True)data.to_excel(r'C:\Users\王掌柜\Desktop\out.xlsx', index=False)# data_list = read_data(r"C:\Users\王掌柜\Desktop\测试.xlsx")frame = pd.read_excel(r"C:\Users\王掌柜\Desktop\测试.xlsx")# pandas 读取 Excel。
2024-01-15 17:39:08
660
原创 Python 微信红包提醒脚本
print(group_name, '群************:', msg['Text'], time.strftime("%Y-%m-%d %H:%M:%S %p"))print(friend_name, '个人消息:', msg['Text'], time.strftime("%Y-%m-%d %X"))print(group_name, '群消息:', msg['Text'], time.strftime("%H:%M:%S %p"))pygame.mixer.init() # 初始化。
2023-08-28 17:57:52
718
原创 输入出生日期判断星座
conts =['摩羯座','水瓶座','双鱼座','白羊座','金牛座','双子座','巨蟹座','狮子座','处女座','天秤座','天蝎座','射手座','摩羯座'] # 12+1个星座。signs=['♑','♒','♓','♈','♉','♊','♋','♌','♍','♎','♏','♐','♑'] # 12+1个星座图形。sdate=[20,19,21,20,21,22,23,23,23,24,23,22] # 12个星座日期判断列表。# 输入生日,输出星座。
2023-08-14 16:58:56
240
原创 实时获取鼠标位置
import pyautoguilast_pos = pyautogui.position()try: while True: # 循环获取鼠标位置、前后不一致就打印 # 新位置 new_pos = pyautogui.position() if last_pos != new_pos: print(new_pos) last_pos = new_posexcept KeyboardInte.
2021-10-25 17:53:25
137
原创 Python学习O基础笔记
第一天代码print("------------------------我爱鱼C工作室---------------------")temp=input("不妨猜一下小甲鱼现在心里想的是哪个数字:")guess=int(temp)if guess==8: print("我擦,这都能猜到,你是小甲鱼心里的蛔虫吗?!") print("猜中也了没有奖励")else: print("猜...
2018-03-28 15:42:28
97
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人