//去除掉密码$db new UserModel();$result $db->field(password,true)->where("username{$params[username]} AND password{$params[password]}")->find();
或者指定要的字段的数组 $db new UserModel();$result $db->field([username,create_time…
LeetCode122. 买卖股票的最佳时机 II 题目链接代码 题目链接
https://leetcode.cn/problems/best-time-to-buy-and-sell-stock-ii/
代码
class Solution:def maxProfit(self, prices: List[int]) -> int:result 0for i in range(1, len(prices)):result max((prices[i…