Skip to content

Commit 6633126

Browse files
authored
fix this py
1 parent e59d819 commit 6633126

File tree

3 files changed

+37
-3
lines changed

3 files changed

+37
-3
lines changed

.vscode/launch.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
// 使用 IntelliSense 了解相关属性。
3+
// 悬停以查看现有属性的描述。
4+
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Python: Current File",
9+
"type": "debugpy",
10+
"request": "launch",
11+
"program": "${file}",
12+
"console": "integratedTerminal",
13+
"justMyCode": true,
14+
"env": {
15+
"PYTHONPATH": "${workspaceFolder}"
16+
}
17+
},
18+
{
19+
"name": "Python: Module",
20+
"type": "debugpy",
21+
"request": "launch",
22+
"module": "${fileBasenameNoExtension}",
23+
"console": "integratedTerminal"
24+
},
25+
{
26+
"name": "PowerShell: Launch Current File",
27+
"type": "PowerShell",
28+
"request": "launch",
29+
"script": "${file}",
30+
"args": []
31+
}
32+
]
33+
}

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"githubPullRequests.ignoredPullRequestBranches": [
33
"master"
4-
]
4+
],
5+
"python.analysis.typeCheckingMode": "standard"
56
}

project_euler/problem_009/sol1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
References:
1616
- https://en.wikipedia.org/wiki/Pythagorean_triple
1717
"""
18-
18+
import timeit
1919

2020
def solution() -> int:
2121
"""
@@ -63,7 +63,7 @@ def benchmark() -> None:
6363
"""
6464
Benchmark code comparing two different version function.
6565
"""
66-
import timeit
66+
6767

6868
print(
6969
timeit.timeit("solution()", setup="from __main__ import solution", number=1000)

0 commit comments

Comments
 (0)