Skip to content

如何让转义符失效 #20

@Sogrey

Description

@Sogrey

让转义符失效(3种方法: r、repr和\)

print(r'Let \'s go!')  ## Let \'s go!

print(repr('hello\nworld'))  ## 'hello\nworld'

print('hello\\nworld')  ## hello\nworld

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions