selfteaching / selfteaching/selfteaching-python-camp

【内容分享】 关于type与isinstance的区别

Open
#1,106 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

学习素材分享
Dominant language
Python
Stars
151
Forks
875
PR merge metrics
No merged PRs in 30d

Description

今天接触到了type和isinstance 分类关系 以下是简述和转载的链接说明 感谢wij 1107
type主要用于获取未知变量的类型
isinstance主要用于判断A类是否继承于B类
链接:https://www.jianshu.com/p/1f59c4cc3876

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository file, test, or entry point is named. Start by reviewing the issue text and linked article to determine whether this project accepts this content and where such material belongs; completion criteria are not specified in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
content, documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.