摘要: from random import random#021def printIntro(): print("21号") print("这是团体赛模拟程序:")def getInputs(): a = eval(input("请输入队伍A的能力值(0-1): ")) b = eval(input("请 阅读全文
posted @ 2021-11-13 22:31 墨凌です 阅读(54) 评论(0) 推荐(0)
摘要: import jieba#021txt = open("西游记.txt", "r", encoding='utf-8').read()words = jieba.lcut(txt) counts = {} for word in words: if len(word) == 1: continue 阅读全文
posted @ 2021-11-13 21:47 墨凌です 阅读(32) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-10-23 19:37 墨凌です 阅读(25) 评论(0) 推荐(0)
摘要: 03运行超市抹零结账行为: 代码: money_all = 56.75 + 72.91 + 88.50 + 26.37 + 68.51money_all_str = str(money_all)print("商品总金额为:" + money_all_str)money_real = int(mone 阅读全文
posted @ 2021-09-13 21:47 墨凌です 阅读(11) 评论(0) 推荐(0)
摘要: 经过今周6节课的学习,我发现其实python与c语言有许许多多的共同之处,只需要记住他们的不同之处便可。这使我能够十分快速的上手python,对它有了基本的了解,python的应用领域比c语言要广泛得多,能够在人工智能、云计算等领域崭露头角。许多知名网站都是由python所实现的,甚至Google在 阅读全文
posted @ 2021-09-04 21:35 墨凌です 阅读(35) 评论(0) 推荐(0)
摘要: 实战二: 代码 print(" * * * * *\n * *\n* @ @ *\n* *\n" "* @ *\n* *\n * *\n * *\n" " * * * * *")#3021 运行结果: 实战一: 代码: jine = int(input("欢迎使用XXX充值业务,请输入充值金额:\n 阅读全文
posted @ 2021-09-04 21:12 墨凌です 阅读(49) 评论(0) 推荐(0)