python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Python: How do I pass a file path as parameter to a function without defining it as a string before putting it into the function?
My end goal is to have a user copy and paste a file path into a PySimpleGUI without having to put quotes around the file path.
Here is the a brief summary of the function:
def fun1(filepath):
normal =...
Spencer Cody
Votes: 0
Answers: 0
How to use escape characters in python fstrings deprecated, without converting to raw string
When running
python3.10 -B -Wall testcode.py
I get the following deprecation warnings in my code which I would like to fix
DeprecationWarning: invalid escape sequence '\:'
DeprecationWarning: invalid ...

remustata
Votes: 0
Answers: 2