要了解装饰器,先要了解以下几点 1.函数等价于变量 函数在内存中的存储和变量是类似的 hello就相当于一个变量,起始地址是 “0x000002578215C1E0”,从这个地址开始后面的一段内存空间,存放hello这个函数的内容 2.高阶函数 一个函数可以被当作是另一个函数的参数传入,返回值也可以 ...
分类:
编程语言 时间:
2019-10-27 11:01:23
阅读次数:
103
用for循环输出商品名单,其中用了enumerate函数对列表进行格式化输出 please input your salary:11 > ('iphone11', 5800)2 > ('mac book ', 9000)3 > ('coffee ', 38)4 > ('python book', 8 ...
分类:
其他好文 时间:
2019-10-25 20:24:34
阅读次数:
76
1003 描述 Now,given the equation 8*x^4 + 7*x^3 + 2*x^2 + 3*x + 6 == Y,can you find its solution between 0 and 100;Now please try your lucky. Now,given t ...
分类:
其他好文 时间:
2019-10-25 18:34:57
阅读次数:
96
嵌套列表实现购物车项目 please input your salary:5880购物清单如下 购物清单 1.iphone11 58002.mac book 90003.coffee 384.python book 805,bicycle 1200 请输入你要购买的商品编号:1该商品已加入购物车,当 ...
分类:
其他好文 时间:
2019-10-25 18:12:56
阅读次数:
62
sublime text 白色边框方框解决方法 https://blog.csdn.net/weixin_43228019/article/details/82766316 Sublime Text提示Unable to download XXX. Please view the console f ...
分类:
其他好文 时间:
2019-10-25 18:11:56
阅读次数:
94
shijitianle#eraseflashdata?---------------------------------------------CommandofprivilegeMode:---------------------------------------------Options<E><active,standby>Activeboardorstandbybo
分类:
其他好文 时间:
2019-10-24 18:20:59
阅读次数:
161
登录操作(方法一:设置flag标志位) please input your username:qweplease input your password:222your username or password is Errorplease input your username:starpleas ...
分类:
其他好文 时间:
2019-10-24 15:54:38
阅读次数:
335
登录操作(方法二:for与else搭配) please input your username:aaaplease input your password:ayour username or password is Errorplease input your username:aplease in ...
分类:
其他好文 时间:
2019-10-24 15:23:52
阅读次数:
82
#include <stdio.h> int main() { char ch; printf("please input:\n"); scanf("%c",&ch); // 根据程序功能描述,补足程序 if(ch>='a‘&&ch<=‘z'); // 如果ch是小写字母,补足判定ch是小写字母的表 ...
分类:
其他好文 时间:
2019-10-23 23:48:00
阅读次数:
79
在64位的系统下 将短信程序运行于服务中,出现以下错误:Error:[size=14px; line-height: 26px;]FATAL | wrapper | 2012/06/18 17:13:29 | There may be a configuration problem: please ...
分类:
移动开发 时间:
2019-10-23 09:52:17
阅读次数:
221