diff --git a/.gitea/workflows/pipeline.yaml b/.gitea/workflows/pipeline.yaml new file mode 100644 index 0000000..f178776 --- /dev/null +++ b/.gitea/workflows/pipeline.yaml @@ -0,0 +1,19 @@ +name: Gitea Actions Demo +run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 +on: [push] + +jobs: + Explore-Gitea-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "The job was automatically triggered by a ${{ gitea.event_name }} event." + - run: echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!" + - run: echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." + - name: Check out repository code + uses: actions/checkout@v3 + - run: echo "The ${{ gitea.repository }} repository has been cloned to the runner." + - run: echo "The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ gitea.workspace }} + - run: echo "This job's status is ${{ job.status }}." diff --git a/lottery/pls.py b/lottery/pls.py index 8d81797..37783bb 100644 --- a/lottery/pls.py +++ b/lottery/pls.py @@ -9,7 +9,7 @@ l = set([ "".join(sorted(f"{i:03d}")) for i in a ]) span_list = [int(i[2]) - int(i[0]) for i in l] span_df = pd.value_counts(span_list) print(span_df.to_dict()) -print((220/span_df).to_dict()) +print((220/span_df).round(2).to_dict()) f1 = lambda number: True if '8' in number or '5' in number else False f2 = lambda number: True if sum(map(int, number)) in [10, 13, 14, 16, 17] else False @@ -24,7 +24,7 @@ arr2 = list(filter(f2, arr1)) sum_list = [ sum(map(int, list(i))) for i in l] sum_df = pd.value_counts(sum_list) # print(sum_df.to_dict()) -print((220/sum_df).to_dict()) +print((220/sum_df).round(2).to_dict()) # 组三 group3 = [ i for i in l if len(set(i)) == 2] @@ -53,10 +53,10 @@ f4 = lambda number: True if 'a' not in number else False f5 = lambda number: True if '4' in number or '6' in number else False f6 = lambda number: True if len(set('279').difference(number)) == 2 else False arr = list(filter(f5, group3)) -print(arr) -print(len(arr)) +# print(arr) +# print(len(arr)) for i in sum_group6_dict.keys(): - if i in range(11, 21): + if i in range(10, 21): # result = sum_group6_dict[i] + sum_group3_dict[i] result = sum_group3_dict[i] print("-"*15 + "组三" + "-"*15)