def test(func): def wrapper(*args,**kwargs): name=input('请输入用户名: ') passwd=input('请输入密码: ale ') if name=='alex' and passwd=='123456': res=func(*args,* ...
分类:
编程语言 时间:
2020-02-10 15:17:23
阅读次数:
84
Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231 - 1. Example 1: Input: 123 Output: " ...
分类:
其他好文 时间:
2020-02-10 10:16:33
阅读次数:
75
############### python-异常的操作 ############### # 异常:python解释器遇到一个错误,会停止程序的执行,并且提示错误信息,这就是异常, # 抛出异常:python停止程序,提示错误,这就是抛出异常 # 捕获异常: # 捕获异常的语法: # try: # ...
分类:
编程语言 时间:
2020-02-10 09:19:37
阅读次数:
71
1 '''width=int(input("width=")) 2 height=int(input("height=")) #用户输入高度 3 num_height=1 4 while num_height<=height: 5 num_width=1 6 while num_width<=wid ...
分类:
其他好文 时间:
2020-02-09 23:53:09
阅读次数:
110
#include<stdio.h>struct student{ long no; char name[9]; int score;};void input(struct student stu[100],int n){ int i; for(i=0;i<n;i++) { scanf("%ld %s ...
分类:
其他好文 时间:
2020-02-09 20:27:01
阅读次数:
81
原文地址: "http://www.work100.net/training/monolithic architecture test.html" 更多教程: "光束云 免费课程" 实践练习 序号|文内章节|视频 : :|: |: 1| "构建项目结构" | 2| "代码实现" | 3| "网站实现 ...
分类:
编程语言 时间:
2020-02-09 18:09:50
阅读次数:
56
通过Selenium模拟浏览器抓取淘宝商品美食信息,并存储到MongoDB数据库中。 from selenium import webdriver from selenium.common.exceptions import TimeoutException from selenium.webdri ...
分类:
其他好文 时间:
2020-02-09 14:58:25
阅读次数:
144
昨天耽搁了一天,今天继续 从 第3章-5 字符转换 开始 1. a=input() b="" for i in a: if i >='0' and i <='9': b=b+iprint(int(b))#(写成b=i+b会有倒置输出的问题) 2. 知识点: python 列表统计元素频数、频率 描述 ...
分类:
编程语言 时间:
2020-02-08 11:22:49
阅读次数:
139
Tensorflow机器学习入门——网络可视化TensorBoard ...
分类:
其他好文 时间:
2020-02-08 00:18:38
阅读次数:
60
表单 表单组 表单组内部放置 和输入组 输入组 输入组内部放置 等控件和其他标签,控件会变短 控件 控件需要增加控件类 控件尺寸 由下面类设定,默认尺寸不同设置 水平排列表单尺寸 或 类,为 包裹的 元素和表单控件快速设置尺寸 静态控件 样式上,不会显示输入框 在容器 上增加类 帮助信息 控件的帮助 ...
分类:
其他好文 时间:
2020-02-07 20:30:38
阅读次数:
73