Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit331a516

Browse files
committed
Changed file path
1 parentb4d114f commit331a516

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lab-12/occurance-remover.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ def occurance_remover(file_path, removal_string):
1414
file.close()
1515
print(f"Removed{occurances}{'occurances'if (occurances!=1)else'occurance'} of{removal_string} from{os.path.basename(file_path)}")
1616

17-
occurance_remover(r"C:\Users\s158658\src\python-programming\lab-12\test.txt","foo")
17+
occurance_remover(os.path.expanduser('~')+"\\src\\python-programming\\lab-12\\test.txt","foo")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp