python打字测试源码,在线打字

第1页

Python Python Software Foundation PSF print print Eclipse PyCharm print ("content") IPO Input Process Output while(True): a=1 infinite loops val if val elif else inital-print inital-print IDE input() print() int() float() bool() str int weight_lbs =

第2页

input('Weight (lbs): ') weight_kg = int(weight_lbs) * 0.45 print(weight_kg) course = 'Python for Beginners' another = course[:] print(another) first = 'John' last = 'Smith' message = first + ' [' + last + '] is a coder' msg = f'{first} [{last}] is a

第3页

coder' print(msg) print(len(course)) print(len(course)) print(course.upper()) print(course.lower()) print(course) len() course.upper() course.lower() course.title() course.find() course.replace() '...' in course Number-theoretic and representation fu

第4页

nctions math.ceil(x) Return the ceiling of x, the smallest integer greater than or equal to x. If x is not a float, delegates to x.__ceil__(), which should return an Integral value. math.comb(n, k) Return the number of ways to choose k items from n i

第5页

tems without repetition and without order. Evaluates to n! / (k! * (n - k)!) when k <= n and evaluates to zero when k > n. Also called the binomial coefficient because it is equivalent to the coefficient of k-th term in polynomial expansion of the ex

第6页

pression (1 + x) ** n. Raises TypeError if either of the arguments are not integers. Raises ValueError if either of the arguments are negative. New in version 3.8. math.copysign(x, y) Return a float with the magnitude (absolute value) of x but the si

第7页

gn of y. On platforms that support signed zeros, copysign(1.0, -0.0) returns -1.0. math.fabs(x) Return the absolute value of x. math.factorial(x) Return x factorial as an integer. Raises ValueError if x is not integral or is negative. math.floor(x) R

第8页

eturn the floor of x, the largest integer less than or equal to x. If x is not a float, delegates to x.__floor__(), which should return an Integral value. math.fmod(x, y) Return fmod(x, y), as defined by the platform C library. Note that the Python e

第9页

xpression x % y may not return the same result. The intent of the C standard is that fmod(x, y) be exactly (mathematically; to infinite precision) equal to x - n*y for some integer n such that the result has the same sign as x and magnitude less than

第10页

abs(y). Python's x % y returns a result with the sign of y instead, and may not be exactly computable for float arguments. For example, fmod(-1e-100, 1e100) is -1e-100, but the result of Python's -1e-100 % 1e100 is 1e100-1e-100, which cannot be repr

第11页

esented exactly as a float, and rounds to the surprising 1e100. For this reason, function fmod() is generally preferred when working with floats, while Python's x % y is preferred when working with integers. math.frexp(x) Return the mantissa and expo

第12页

nent of x as the pair (m, e). m is a float and e is an integer such that x == m * 2**e exactly. If x is zero, returns (0.0, 0), otherwise 0.5 <= abs(m) < 1. This is used to "pick apart" the internal representation of a float in a portable way. math.f

第13页

sum(iterable) Return an accurate floating point sum of values in the iterable. Avoids loss of precision by tracking multiple intermediate partial sums: >>>

1.系统界面:就三项选择功能键。 练习/考试/设置 2.练习第一界面的用户选择及练习内容选择。 3.测试第一页面与练习页面基本相同,但没有测试项目的情况下无法进入本页。如只有一个测试项目的情况下系统不会出现选择文本的列表框。 4.练习/测试页面。应该是本系统最核心的部分了。 功能:1.页面内容无法复制及粘贴,包括从外都没无法复制到本输入框中,光标始终在输入文本最后,输入后无法修改中间的文本; 2.开始输入以键盘击键即开始,到时间或输入全部内容后结束。结束后无法再输入; 3.输入对错自动判断,当输入正确,原字符变绿,错误则变红,当前输入字符突出显示; 4.进度实时显示,并上传服务器。管理员可以随时了解每位学生的输入情况; 5.练习/测试的排名前10学生及输入速度显示。 5.管理员登录界面。 6.后台的学生导入。 7.后台的练习文本管理。练习时间的管理;添加/删除练习文本功能,学生使用练习文本的次数会被记录。 8.后台的测试文本管理。 功能:1.每个测试可设置独立的测试时间; 2.设置测试的开放时间和测试的结束时间,有此时间段外将无法登录测试; 3.测试内容的修改及删除功能; 9.练习/测试情况在线/结果的柱状实时显示。 10.练习/测试结果的显示与导出。 本系统基于.net 4.0开发,服务器环境要求:IIS+.net4.0
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值