diff --git a/555/.idea/inspectionProfiles/profiles_settings.xml b/555/.idea/inspectionProfiles/profiles_settings.xml
new file mode 100644
index 0000000000000000000000000000000000000000..105ce2da2d6447d11dfe32bfb846c3d5b199fc99
--- /dev/null
+++ b/555/.idea/inspectionProfiles/profiles_settings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/555/.idea/misc.xml b/555/.idea/misc.xml
new file mode 100644
index 0000000000000000000000000000000000000000..2a01189048dd51552f6ba99bf21b7c67f3613c98
--- /dev/null
+++ b/555/.idea/misc.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/555/.idea/modules.xml b/555/.idea/modules.xml
new file mode 100644
index 0000000000000000000000000000000000000000..e15ec35fe054f3b2c7c21e3dcca866d6a79ca0ba
--- /dev/null
+++ b/555/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/555/.idea/pythonProject.iml b/555/.idea/pythonProject.iml
new file mode 100644
index 0000000000000000000000000000000000000000..2c80e1269497d12e018fd6afa29982e56b0fb70d
--- /dev/null
+++ b/555/.idea/pythonProject.iml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/555/.idea/vcs.xml b/555/.idea/vcs.xml
new file mode 100644
index 0000000000000000000000000000000000000000..6c0b8635858dc7ad44b93df54b762707ce49eefc
--- /dev/null
+++ b/555/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/555/__pycache__/datas.cpython-312.pyc b/555/__pycache__/datas.cpython-312.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..bf3e684343b76adf9cc0b44d12d0ba8cb2aced65
Binary files /dev/null and b/555/__pycache__/datas.cpython-312.pyc differ
diff --git a/555/datas.py b/555/datas.py
new file mode 100644
index 0000000000000000000000000000000000000000..485c95c546b18f8d19fd2dc1154c13caab25c559
--- /dev/null
+++ b/555/datas.py
@@ -0,0 +1,64 @@
+
+
+datas=[
+ {
+ "city":"吕梁",
+ "area":100,
+ "rooms":2,
+ "school":1,
+ "style":1,
+ "price":8000,
+ },
+{
+ "city":"吕梁",
+ "area":130,
+ "rooms":2,
+ "school":1,
+ "style":1,
+ "price":7800,
+ },
+{
+ "city":"吕梁",
+ "area":150,
+ "rooms":2,
+ "school":1,
+ "style":1,
+ "price":8200,
+ },
+
+
+{
+ "city":"太原",
+ "area":100,
+ "rooms":2,
+ "school":1,
+ "style":1,
+ "price":10000,
+ },
+{
+ "city":"太原",
+ "area":130,
+ "rooms":2,
+ "school":1,
+ "style":1,
+ "price":9800,
+ },
+{
+ "city":"太原",
+ "area":150,
+ "rooms":2,
+ "school":1,
+ "style":1,
+ "price":8500,
+ },
+]
+
+# 各 3000 10 1000 1300 1500
+# 城市 面积 房间数量 学区房 装修 各个元素的权重 a1 a2 a3 a4 a5
+# 总价即总分 : p
+# 各个元素*各个元素的权重之和即为分数
+# 城市: x1 例: 县=1 市=2
+# 面积: x2 按平方米计量
+# 房间数量: x3 个数
+# 学区房 : bool 0/1
+# 装修: bool 0/1 是否精装修
\ No newline at end of file
diff --git a/555/reddict.py b/555/reddict.py
new file mode 100644
index 0000000000000000000000000000000000000000..630fecc2155caab86a826ccdb19d83f94680d070
--- /dev/null
+++ b/555/reddict.py
@@ -0,0 +1,48 @@
+
+import numpy as np
+from datas import datas
+x=[]
+y=[]
+cityMark={"吕梁":1,"太原":2}
+for item in datas:
+ single=[]
+
+ single.append(cityMark[item["city"]])
+
+ single.append(item["area"])
+
+ single.append(item["rooms"])
+
+ single.append(item["school"])
+
+ single.append(item["style"])
+
+
+
+x.append(single)
+y.append(item["price"])
+
+x=np.array(x)
+y=np.array(y)
+print(x)
+print(y)
+
+
+theta=np.linalg.pinv(x.T.dot(x)).dot(x.T).dot(y)
+
+print(theta.dot(np.array([2,100,2,1,1])))
+
+
+#a=np.array([[1,2,3],[1,2,3]])
+#b=np.array([1,2,3])
+#print(a.dot(b)) #点乘
+
+
+#print(a)
+#print(a.T) #转置矩阵
+
+
+#print(np.linalg.pinv(a)) #矩阵求逆
+
+
+