FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
learn-python3/samples/basic/the_string.py at master · sofay/learn-python3 · GitHub
sofay
/
learn-python3
Public
forked from
michaelliao/learn-python3
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
learn-python3
/
samples
/
basic
/
the_string.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
8 lines (7 loc) · 133 Bytes
Breadcrumbs
learn-python3
/
samples
/
basic
/
the_string.py
Copy path
File metadata and controls
executable file
·
8 lines (7 loc) · 133 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
s
=
'Python-中文'
print
(
s
)
b
=
s
.
encode
(
'utf-8'
)
print
(
b
)
print
(
b
.
decode
(
'utf-8'
))
Back
|
FazBrowse Home
|
New Git URL