1、首先按下“Win+R”组合键,打开运行窗口。
2、在打开文本框输入“cmd”,点击确定。
3、在打开的cmd窗口中,输入:“python”,点击Enter键。
4、在Python环境中,输入:“x = ('apple', '挢旗扦渌;banana', 'cherry')”,点击Enter键。
5、然后输入:“y = id(x)”,点击Enter键。
6、在Python环境中,输入:“print(y)”。
7、点击Enter键,即可使用Python内置的id函数返回元组对象的唯一 id 。
1、首先按下“Win+R”组合键,打开运行窗口。
2、在打开文本框输入“cmd”,点击确定。
3、在打开的cmd窗口中,输入:“python”,点击Enter键。
4、在Python环境中,输入:“x = ('apple', '挢旗扦渌;banana', 'cherry')”,点击Enter键。
5、然后输入:“y = id(x)”,点击Enter键。
6、在Python环境中,输入:“print(y)”。
7、点击Enter键,即可使用Python内置的id函数返回元组对象的唯一 id 。