如何将字符串的打印版本复制到新字符串

2024-10-01 09:15:52 发布

您现在位置:Python中文网/ 问答频道 /正文

假设这是我的字符串的repr版本

raw = ''If the third-party evaluating agency is a NACES member\xa0and uses the CDGDC for their verification, you will not need to send a report from the CDGDC and the evaluation is sufficient for your application. If not, please contact grad.info@uc.edu to find out whether your evaluation will be accepted.'' vs. ''If the third-party evaluating agency is a NACES member and uses the CDGDC for their verification, you will not need to send a report from the CDGDC and the evaluation is sufficient for your application. If not, please contact grad.info@uc.edu to find out whether your evaluation will be accepted.''

这就是它看起来是印刷的

'If the third-party evaluating agency is a NACES member and uses the CDGDC for their verification, you will not need to send a report from the CDGDC and the evaluation is sufficient for your application. If not, please contact grad.info@uc.edu to find out whether your evaluation will be accepted.' vs. 'If the third-party evaluating agency is a NACES member and uses the CDGDC for their verification, you will not need to send a report from the CDGDC and the evaluation is sufficient for your application. If not, please contact grad.info@uc.edu to find out whether your evaluation will be accepted.'

获得第二版的最有效方式是什么


Tags: andthetoforyourifisparty