Help help cách + các hàng có chọn lọc để ra kết quả.

Hi các bác MMO
em có các demo 5 hàng như sau mong các ae giúp em với chứ + tay vừa sai vừa mệt :v
[celed] Vibrant $1.00 [celed] Vibrant $0.97 [celed] Onyx $1.00 [celed] Equate $0.97 [celed] Pine $1.14 [vered on Aug 16] Igloo $29.97
[celed on Aug 21] Vibrant $0.97 [celed on Aug 21] Onyx $1.00 [celed on Aug 21] Duck $1.06 [celed on Aug 21] Pine $1.14 [celed on Aug 21] Pen+Gear $1.00 [vered on Aug 17] Special $31.97
[celed] Vibrant $1.00 [celed] Vibrant $0.97 [celed] Onyx $1.00 [celed] Pine $1.14 [celed] Pen+Gear $1.00 [vered on Aug 19] Temptations $30.96
[celed] Vibrant $1.00 [celed] Vibrant $0.97 [celed] Pine $1.14 [celed] Equate $0.97 [celed] Pen+Gear $1.00 [vered on Aug 21] Purina $25.28 [vered on Aug 21] Purina $25.28
[celed on Aug 22] Vibrant $1.00 [celed on Aug 22] Vibrant $0.97 [celed on Aug 22] Duck $1.06 [celed on Aug 22] Equate $0.97 [celed on Aug 22] Pen+Gear $1.00 [vered on Aug 19] CESAR $39.97


em muốn + tiền của các [vered như sau : 29.97+31.97+30.96+25.28+39.97

xin hậu tạ cốc coffee 100k cho bác nào giúp em với :v
 

cocliteone

Verified
Trusted 3
Joined
Sep 21, 2019
Messages
732
Solutions
3
Reactions
497
MR
20.240
$540.00
Services
  • VPS
Chat with me via Yahoo Messenger Follow me on Facebook
dùng chat gpt nhé train tý là ok :ami_fat_cat_040: :ami_fat_cat_040:
ch.PNG
 

Over

Junior
Joined
Apr 4, 2013
Messages
116
Reactions
31
MR
0.524
dùng nood++
Dùng code xoá hết phần trước.còn lại phần $số
Rồi copy ra excel
B tham khảo xem
mình k giỏi IT , chỉ biết sreach google thôi )
dùng cụ thể code nào vậy bạn ?
 

homies9x

Newbie
Joined
Mar 29, 2016
Messages
25
Reactions
11
MR
0.516
Hi các bác MMO
em có các demo 5 hàng như sau mong các ae giúp em với chứ + tay vừa sai vừa mệt :v
[celed] Vibrant $1.00 [celed] Vibrant $0.97 [celed] Onyx $1.00 [celed] Equate $0.97 [celed] Pine $1.14 [vered on Aug 16] Igloo $29.97
[celed on Aug 21] Vibrant $0.97 [celed on Aug 21] Onyx $1.00 [celed on Aug 21] Duck $1.06 [celed on Aug 21] Pine $1.14 [celed on Aug 21] Pen+Gear $1.00 [vered on Aug 17] Special $31.97
[celed] Vibrant $1.00 [celed] Vibrant $0.97 [celed] Onyx $1.00 [celed] Pine $1.14 [celed] Pen+Gear $1.00 [vered on Aug 19] Temptations $30.96
[celed] Vibrant $1.00 [celed] Vibrant $0.97 [celed] Pine $1.14 [celed] Equate $0.97 [celed] Pen+Gear $1.00 [vered on Aug 21] Purina $25.28 [vered on Aug 21] Purina $25.28
[celed on Aug 22] Vibrant $1.00 [celed on Aug 22] Vibrant $0.97 [celed on Aug 22] Duck $1.06 [celed on Aug 22] Equate $0.97 [celed on Aug 22] Pen+Gear $1.00 [vered on Aug 19] CESAR $39.97


em muốn + tiền của các [vered như sau : 29.97+31.97+30.96+25.28+39.97

xin hậu tạ cốc coffee 100k cho bác nào giúp em với :v
giảm giá 50% :D
 

wukong0x

Junior
Joined
Aug 31, 2023
Messages
47
Reactions
23
MR
0.855
Hi các bác MMO
em có các demo 5 hàng như sau mong các ae giúp em với chứ + tay vừa sai vừa mệt :v
[celed] Vibrant $1.00 [celed] Vibrant $0.97 [celed] Onyx $1.00 [celed] Equate $0.97 [celed] Pine $1.14 [vered on Aug 16] Igloo $29.97
[celed on Aug 21] Vibrant $0.97 [celed on Aug 21] Onyx $1.00 [celed on Aug 21] Duck $1.06 [celed on Aug 21] Pine $1.14 [celed on Aug 21] Pen+Gear $1.00 [vered on Aug 17] Special $31.97
[celed] Vibrant $1.00 [celed] Vibrant $0.97 [celed] Onyx $1.00 [celed] Pine $1.14 [celed] Pen+Gear $1.00 [vered on Aug 19] Temptations $30.96
[celed] Vibrant $1.00 [celed] Vibrant $0.97 [celed] Pine $1.14 [celed] Equate $0.97 [celed] Pen+Gear $1.00 [vered on Aug 21] Purina $25.28 [vered on Aug 21] Purina $25.28
[celed on Aug 22] Vibrant $1.00 [celed on Aug 22] Vibrant $0.97 [celed on Aug 22] Duck $1.06 [celed on Aug 22] Equate $0.97 [celed on Aug 22] Pen+Gear $1.00 [vered on Aug 19] CESAR $39.97


em muốn + tiền của các [vered như sau : 29.97+31.97+30.96+25.28+39.97

xin hậu tạ cốc coffee 100k cho bác nào giúp em với :v
14 dòng là xong, bác tạo 1 file notepad đặt tên là data.txt rồi ném dữ liệu vào. Code em để bên dưới:
with open('data.txt', 'r') as file: data = file.read() lines = data.split('\n') total = 0 for line in lines: if "[vered" in line: parts = line.split('$') if len(parts) >= 2: value = float(parts[-1].split()[0]) total += value print(f'Total: ${total:.2f}')
 

Announcements

Today's birthdays

Forum statistics

Threads
425,713
Messages
7,161,402
Members
178,230
Latest member
uk88digital

Most viewed of week

Most discussed of week

Most viewed of week

Most discussed of week

Back
Top Bottom