Skip to content

Commit

Permalink
feat: add split_exp.py for testing split method
Browse files Browse the repository at this point in the history
This commit adds the file split_exp.py, which is used for testing the split method. The method splits a string using "2" as the delimiter and assigns the result to sub_key and key variables. The split_exp.py file also includes a print statement to display the values of sub_key and key.
  • Loading branch information
sudoskys committed Jan 18, 2024
1 parent 0d65f43 commit adec670
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions feature_test/split_exp.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# -*- coding: utf-8 -*-
# @Time : 2024/1/18 下午11:09
# @Author : sudoskys
# @File : split_exp.py

method = "ass2srt"
sub_key, key = method.split("2", maxsplit=1)

print(sub_key, key)

0 comments on commit adec670

Please sign in to comment.