Click here to Skip to main content
16,015,973 members
Home / Discussions / Python
   

Python

 
JokeRe: I need python code for multiple page pdf extraction Pin
Richard Deeming6-Nov-23 21:30
mveRichard Deeming6-Nov-23 21:30 
AnswerRe: I need python code for multiple page pdf extraction Pin
Richard MacCutchan6-Nov-23 21:38
mveRichard MacCutchan6-Nov-23 21:38 
AnswerRe: I need python code for multiple page pdf extraction Pin
Gerry Schmitz8-Nov-23 5:31
mveGerry Schmitz8-Nov-23 5:31 
AnswerRe: I need python code for multiple page pdf extraction Pin
Andre Oosthuizen10-Nov-23 6:36
mveAndre Oosthuizen10-Nov-23 6:36 
QuestionWhat is the difference between "C:\\my folder" and r"C:\my folder" in Python Pin
s yu12-Oct-23 6:44
s yu12-Oct-23 6:44 
AnswerRe: What is the difference between "C:\\my folder" and r"C:\my folder" in Python Pin
Richard Deeming12-Oct-23 21:45
mveRichard Deeming12-Oct-23 21:45 
GeneralRe: What is the difference between "C:\\my folder" and r"C:\my folder" in Python Pin
s yu13-Oct-23 3:17
s yu13-Oct-23 3:17 
AnswerRe: What is the difference between "C:\\my folder" and r"C:\my folder" in Python Pin
Alisha Aalu5-Nov-23 21:49
Alisha Aalu5-Nov-23 21:49 
Certainly! In Python, the difference between `"C:\\my folder"` and `r"C:\my folder"` lies in how they handle backslashes within strings:

1. **`"C:\\my folder"`:**
   - This is a regular Python string where the backslash `\` is an escape character. When you use `\\`, it represents a single backslash in the resulting string.
   - For example, `"C:\\my folder"` would be interpreted as `"C:\my folder"` when used in code.

2. **`r"C:\my folder"`:**
   - The `r` prefix before the string denotes a raw string in Python. In a raw string, backslashes are treated as literal characters and are not interpreted as escape characters.
   - So, `r"C:\my folder"` represents the string exactly as it is, including the backslash, and results in `"C:\my folder"`.

Yes, you can achieve the same result by using a raw string. Both `"C:\\my folder"` and `r"C:\my folder"` represent the same file path, but using a raw string often makes code more readable and avoids potential confusion with escape sequences.

SuggestionRe: What is the difference between "C:\\my folder" and r"C:\my folder" in Python Pin
Richard Deeming5-Nov-23 22:54
mveRichard Deeming5-Nov-23 22:54 
GeneralRe: What is the difference between "C:\\my folder" and r"C:\my folder" in Python Pin
Alisha Aalu7-Nov-23 21:51
Alisha Aalu7-Nov-23 21:51 
GeneralRe: What is the difference between "C:\\my folder" and r"C:\my folder" in Python Pin
Richard Deeming7-Nov-23 21:56
mveRichard Deeming7-Nov-23 21:56 
QuestionFLAMES game in python Pin
ganga devi 20237-Oct-23 20:20
ganga devi 20237-Oct-23 20:20 
AnswerRe: FLAMES game in python Pin
Richard MacCutchan7-Oct-23 21:38
mveRichard MacCutchan7-Oct-23 21:38 
GeneralRe: FLAMES game in python Pin
ganga devi 20238-Oct-23 8:06
ganga devi 20238-Oct-23 8:06 
QuestionObjectDetectionCoral v1.5.1 - where is python.exe Pin
Richard N6-Oct-23 10:43
Richard N6-Oct-23 10:43 
AnswerRe: ObjectDetectionCoral v1.5.1 - where is python.exe Pin
Richard MacCutchan6-Oct-23 22:29
mveRichard MacCutchan6-Oct-23 22:29 
GeneralRe: ObjectDetectionCoral v1.5.1 - where is python.exe Pin
Richard N7-Oct-23 0:21
Richard N7-Oct-23 0:21 
GeneralRe: ObjectDetectionCoral v1.5.1 - where is python.exe Pin
Richard MacCutchan7-Oct-23 0:48
mveRichard MacCutchan7-Oct-23 0:48 
QuestionHOW TO register in Azure DevOps a CallBack, which triggers a Python function when a work items has been updated Pin
Member 140680196-Sep-23 9:32
Member 140680196-Sep-23 9:32 
AnswerRe: HOW TO register in Azure DevOps a CallBack, which triggers a Python function when a work items has been updated Pin
Richard MacCutchan6-Sep-23 21:57
mveRichard MacCutchan6-Sep-23 21:57 
GeneralRe: HOW TO register in Azure DevOps a CallBack, which triggers a Python function when a work items has been updated Pin
Member 140680197-Sep-23 13:44
Member 140680197-Sep-23 13:44 
GeneralRe: HOW TO register in Azure DevOps a CallBack, which triggers a Python function when a work items has been updated Pin
Richard MacCutchan7-Sep-23 23:23
mveRichard MacCutchan7-Sep-23 23:23 
QuestionPython Project Pin
African Electronic Literature2-Sep-23 21:15
African Electronic Literature2-Sep-23 21:15 
QuestionUpdating a Dictionary in python iteratively Pin
Maverick49426-Aug-23 12:39
Maverick49426-Aug-23 12:39 
AnswerRe: Updating a Dictionary in python iteratively Pin
Richard MacCutchan26-Aug-23 21:11
mveRichard MacCutchan26-Aug-23 21:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.