This commit is contained in:
2024-11-22 12:53:49 +08:00
parent fc304f4c3b
commit 5b9a2d7267
4 changed files with 43 additions and 3 deletions

View File

@@ -481,6 +481,11 @@ def convert_wordpress_xml_to_markdown(xml_file='./a.xml', convert_content=1, rep
with open(cleaned_filename, 'w', encoding='utf-8') as md_file:
md_file.write(markdown_content)
# 凯利公式
def kelly_formula(p, b, a=1):
f=(p/a)-((1-p)/b)
return f
# 获取所有股票
def all_stocks():
import numpy as np