Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
CodeByteMe
/
python-small-examples
Public
forked from
jackzhenguo/python-small-examples
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
dev
Breadcrumbs
python-small-examples
/
rst
/
ch02
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
dev
Breadcrumbs
python-small-examples
/
rst
/
ch02
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
01_求绝对值.rst
01_求绝对值.rst
02_元素都为真判断.rst
02_元素都为真判断.rst
03_元素至少一个为真.rst
03_元素至少一个为真.rst
04_ascii对象展示.rst
04_ascii对象展示.rst
05_进制转换.rst
05_进制转换.rst
06_判断是真是假.rst
06_判断是真是假.rst
07_字符串转字节.rst
07_字符串转字节.rst
08_转为字符串.rst
08_转为字符串.rst
09_callable可调用对象.rst
09_callable可调用对象.rst
10_十和ASCII互转.rst
10_十和ASCII互转.rst
11_classmethod装饰器.rst
11_classmethod装饰器.rst
12_执行字符串表示的代码.rst
12_执行字符串表示的代码.rst
13_创建复数.rst
13_创建复数.rst
14_动态删除属性.rst
14_动态删除属性.rst
15_转为字典.rst
15_转为字典.rst
16_查看对象所有属性和方法.rst
16_查看对象所有属性和方法.rst
17_取商和求余同时做.rst
17_取商和求余同时做.rst
18_enumerate方法.rst
18_enumerate方法.rst
19.rst
19.rst
23.rst
23.rst
24.rst
24.rst
25.rst
25.rst
26.rst
26.rst
27.rst
27.rst
28.rst
28.rst
29.rst
29.rst
30.rst
30.rst
31.rst
31.rst
32.rst
32.rst
33.rst
33.rst
34.rst
34.rst
35.rst
35.rst
36.rst
36.rst
37.rst
37.rst
38.rst
38.rst
39.rst
39.rst
40.rst
40.rst
41.rst
41.rst
42.rst
42.rst
43.rst
43.rst
44.rst
44.rst
45.rst
45.rst
46.rst
46.rst
47.rst
47.rst
48.rst
48.rst
49.rst
49.rst
50.rst
50.rst
51.rst
51.rst
52.rst
52.rst
53.rst
53.rst
54.rst
54.rst
55.rst
55.rst
56.rst
56.rst
57.rst
57.rst
58.rst
58.rst
59.rst
59.rst
60.rst
60.rst
61.rst
61.rst
62.rst
62.rst
63.rst
63.rst
64.rst
64.rst
65.rst
65.rst
66.rst
66.rst
67.rst
67.rst
68.rst
68.rst
69.rst
69.rst
70.rst
70.rst
71.rst
71.rst
72.rst
72.rst
73.rst
73.rst
74.rst
74.rst
75.rst
75.rst
76.rst
76.rst
77.rst
77.rst
78.rst
78.rst
79.rst
79.rst
80.rst
80.rst
81.rst
81.rst
82.rst
82.rst
83.rst
83.rst
84.rst
84.rst
85.rst
85.rst
86.rst
86.rst
View all files
You can’t perform that action at this time.