Python Forum
in this code, I input Key_word, it can not find although all data was exact Help me!
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
in this code, I input Key_word, it can not find although all data was exact Help me!
#2
Print the value of keyword and cleaned_message. Is keyword appearing in cleaned_message? Print context_text to see if any matches were found. If you think you saw where keyword was in cleaned_message, but nothing appears in context_text, post the printed output.

You don't have to create a window to use a tkinter file dialog. This works:
from tkinter import filedialog

file_path = filedialog.asksaveasfilename(defaultextension=".txt", filetypes=[("Text files", "*.txt")])
print(file_path)
Reply


Messages In This Thread
RE: in this code, I input Key_word, it can not find although all data was exact Help me! - by deanhystad - Aug-31-2023, 03:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Help with to check an Input list data with a data read from an external source sacharyya 3 519 Mar-09-2024, 12:33 PM
Last Post: Pedroski55
  manually input data jpatierno 0 375 Nov-10-2023, 02:32 AM
Last Post: jpatierno
  Input network device connection info from data file edroche3rd 6 1,169 Oct-12-2023, 02:18 AM
Last Post: edroche3rd
  Code won't break While loop or go back to the input? MrKnd94 2 1,035 Oct-26-2022, 10:10 AM
Last Post: Larz60+
  Help Switching between keyboard/Mic input in my code Extra 1 1,140 Aug-28-2022, 10:16 PM
Last Post: deanhystad
  get data from excel and find max/min Timmy94 1 1,150 Jul-27-2022, 08:23 AM
Last Post: Larz60+
  what will be the best way to find data in txt file? korenron 2 1,213 Jul-25-2022, 10:03 AM
Last Post: korenron
  Showing an empty chart, then input data via function kgall89 0 1,005 Jun-02-2022, 01:53 AM
Last Post: kgall89
Question Change elements of array based on position of input data Cola_Reb 6 2,215 May-13-2022, 12:57 PM
Last Post: Cola_Reb
  Matching Exact String(s) Extra 4 1,985 Jan-12-2022, 04:06 PM
Last Post: Extra

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020