会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
刘宏缔的架构森林
专注架构的博客
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
189
下一页
2026年3月29日
ios开发: 安装第三方库alamofire
摘要: 一,安装: 输入alamofire在github的地址,然后点击 Add Package 安装完成后会在项目中看到:
阅读全文
posted @ 2026-03-29 08:39 刘宏缔的架构森林
阅读(2)
评论(0)
推荐(0)
2026年3月28日
ios开发: 显示网络图片
摘要: 一,代码: // // ContentView.swift // helloworld2 // // Created by liuhongdi on 2026/3/28. // import SwiftUI struct ContentView: View { let imageUrl = "htt
阅读全文
posted @ 2026-03-28 19:34 刘宏缔的架构森林
阅读(1)
评论(0)
推荐(0)
ios开发: hello,world
摘要: 一,代码: import SwiftUI import AVFoundation struct ContentView: View { let synthesizer = AVSpeechSynthesizer() var body: some View { Button { let utter =
阅读全文
posted @ 2026-03-28 15:50 刘宏缔的架构森林
阅读(1)
评论(0)
推荐(0)
ios开发:模拟器安装在哪里?
摘要: 一,列出已安装的模拟器: % xcrun simctl list devices == Devices == -- iOS 18.0 -- iPhone SE (3rd generation) (50A3D6E4-57A6-4655-AB1B-35D20A1D3F71) (Shutdown) iPh
阅读全文
posted @ 2026-03-28 14:29 刘宏缔的架构森林
阅读(1)
评论(0)
推荐(0)
ios开发:手动下载xcode
摘要: 一,下载地址: https://developer.apple.com/download/all/ 选择和自己电脑平台相符合的xcode版本 如果不确定,参考这个页面: https://xcodereleases.com/ 二,下载后添加到应用程序: 解压.xip文件, 然后把解压得到xcode添加
阅读全文
posted @ 2026-03-28 14:06 刘宏缔的架构森林
阅读(5)
评论(0)
推荐(0)
flask: sqlalchemy:记录慢查询日志:(flask-sqlalchemy 3.1.1)
摘要: 一,创建目录 用来保存sql日志 $ sudo mkdir /var/log/sqlalchemy $ sudo chmod 777 /var/log/sqlalchemy 二,代码 1,配置 FLASK_DB_QUERY_TIMEOUT = 0.0001 # 设置sql执行超时时间,#记录执行时间
阅读全文
posted @ 2026-03-28 08:37 刘宏缔的架构森林
阅读(1)
评论(0)
推荐(0)
2026年3月27日
flask: sqlalchemy记录sql日志
摘要: 一,创建目录 用来保存sql日志 $ sudo mkdir /var/log/sqlalchemy $ sudo chmod 777 /var/log/sqlalchemy 二,代码: import logging from flask import Flask from flask_sqlalch
阅读全文
posted @ 2026-03-27 16:33 刘宏缔的架构森林
阅读(2)
评论(0)
推荐(0)
2026年3月20日
flask: 日志:打印请求参数和响应体
摘要: 代码: @api.after_request def log_params(response): # 计算响应时间并记录响应体(如果需要) current_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) ip = request
阅读全文
posted @ 2026-03-20 17:55 刘宏缔的架构森林
阅读(4)
评论(0)
推荐(0)
flask: 使用shell执行代码中的函数
摘要: 一,启动shell $ source venv/bin/activate ((venv) ) [lhdop@blog enterprise_library_api]$ flask shell 二,执行函数 >>> from app.jobs.util import import_china_city
阅读全文
posted @ 2026-03-20 11:24 刘宏缔的架构森林
阅读(3)
评论(0)
推荐(0)
2026年3月12日
flask:接收json参数
摘要: 一,python代码: from flask import jsonify, g, request from . import api import json @api.route("/manage/save", methods=["POST"]) def manage_save(): raw_da
阅读全文
posted @ 2026-03-12 21:57 刘宏缔的架构森林
阅读(3)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
189
下一页
公告