-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
39 lines (30 loc) · 791 Bytes
/
test.py
File metadata and controls
39 lines (30 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
from google import genai
import bisect
from collections import Counter
# client = genai.Client()
# response = client.models.generate_content(
# model="gemini-2.5-pro",
# contents="deploy的中文含义有哪些?请以json格式返回所有词性以及其对应的中文释义,不需要任何多余字符",
# )
# print(response.text)#hello
# nums = [1,2,3,4,4,4,5,6,6,7]
# for n in (-1, 2, 4, 6, 10):
# print(bisect.bisect_left(nums, n),end = ' ')
# # 0, 1, 3, 7, 10
# print()
# for n in (-1, 2, 4, 6, 10):
# print(bisect.bisect_right(nums,n), end = ' ')
# # 0, 2, 6, 9, 10
# print()
# example = {
# "hello": 3,
# "auuu": 4
# }
# print(sorted(example, key=lambda x: x[1]))
# s = "ldj"
# s[1] = 'o'
# print(s)
d = {"1":"s",2:"e"}
c = Counter(d)
print(c)
#test branch