提交 93642a73 编写于 作者: W weixin_42259925

Sun Dec 17 16:46:00 CST 2023 inscode

上级 d5b5bd03
import subprocess
subprocess.run(["streamlit", "run", "stui.py"])
def binary_search(arr, target):
low = 0
high = len(arr) - 1
while low <= high:
mid = (low + high) // 2
if arr[mid] == target:
return mid
elif arr[mid] < target:
low = mid + 1
else:
high = mid - 1
return -1 # target not found in arr
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册