10 2024 档案

摘要:import math # 实现数学除法商进一法 dividend = 153 divisor = 100 result = dividend / divisor # 结果1.53 # math.ceil 函数向上取整 rounded_result = math.ceil(result) # 结果2 阅读全文
posted @ 2024-10-28 10:17 冷夜O 阅读(6) 评论(0) 推荐(0) 编辑
摘要:import openpyxl from openpyxl import Workbook # 常用于数据批量读出来和写进去 # 往表格写入操作 def create_wb(): # 创建一个新的工作簿 wb = Workbook() # 选择默认的工作表 ws = wb.active # 假设这是 阅读全文
posted @ 2024-10-25 16:20 冷夜O 阅读(159) 评论(0) 推荐(0) 编辑
摘要:# server.py import asyncio import websockets async def echo(websocket, path): async for message in websocket: print(f"server Received: {message}") awa 阅读全文
posted @ 2024-10-11 17:44 冷夜O 阅读(10) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示