摘要: 知识点: ASCII码和字符的转化 转为字符chr(a) 转为ASCII码ord(c)) 代码: num=[eval(x) for x in input().split()] num.sort() for i in num[:-1]: print(chr(i),end="<") print(chr( 阅读全文
posted @ 2022-05-25 22:11 kingwzun 阅读(59) 评论(0) 推荐(0) 编辑
摘要: def gcd(a,b): if a%b == 0: return b else : return gcd(b,a%b) while 1: try: a, b = map(int, input().split()) ma=gcd(a,b) print("{} {}".format(ma,int(a* 阅读全文
posted @ 2022-05-25 21:30 kingwzun 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 坑点 输入的两个范围,不一定是前面的小,后面的的大 代码 from math import sqrt t=int(input()) for i in range(t): a,b=map(int, input().split()) b,a=max(a,b),min(a,b) ans=0 for k i 阅读全文
posted @ 2022-05-25 20:02 kingwzun 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 注意点:不换行输出 代码 while True: try: n=int(input()) ans=1 for k in range(1,n+1): for i in range(1,k): print("{}*{}={}".format(i,k,i*k),end=" ") print("{}*{}= 阅读全文
posted @ 2022-05-25 19:46 kingwzun 阅读(114) 评论(0) 推荐(0) 编辑
摘要: c:out c:if 用法: <c:if test=""> <%-- 标签体--%> </c:if> 如果test的计算结果为true,则执行标签体 否则,不执行 c:choose 用法: <c:choose> <c:when test=""> <%-- 标签体--%> </c:when> <c:o 阅读全文
posted @ 2022-05-25 19:26 kingwzun 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 出现的问题: %@ taglib uri="http://java.sun.com/jsp/jstl/core"prefix="c"%报错 解决方法: 导入jstl.jar和 standard.jar 将jar直接拖到项目的web-WEB-INF-lib里面 点击jar包,右键-添加为库 阅读全文
posted @ 2022-05-25 16:52 kingwzun 阅读(33) 评论(0) 推荐(0) 编辑