摘要: import pymysqldb =pymysql.connect(host='localhost',user='root',password='15019599752',database='mrsoft',charset='utf8')#使用cursor()方法创建一个游标对象cursor = d 阅读全文
posted @ 2021-12-11 17:52 Mint-L 阅读(32) 评论(0) 推荐(0)
摘要: import pymysqldb =pymysql.connect(host='localhost',user='root',password='15019599752',database='mrsoft',charset='utf8') #使用cursor()方法创建一个游标对象cursor = 阅读全文
posted @ 2021-12-11 17:31 Mint-L 阅读(39) 评论(0) 推荐(0)
摘要: import jieba mydict = ['琏二奶奶','凤哥儿','凤丫头','宝姑娘','颦儿','二姑娘','三姑娘','四姑娘','云妹妹','蓉大奶奶'] for item in mydict: jieba.add_word(item) txt = open('红楼梦.txt',"r" 阅读全文
posted @ 2021-11-14 11:27 Mint-L 阅读(36) 评论(0) 推荐(0)
摘要: from random import randomdef printIntro(): print("26号程序员的程序模拟两个选手A和B的排球比赛") print("程序需要A和B的能力值(以0到1之间的小数表示)")def getInputs(): a=eval(input("请输入选手A的能力值 阅读全文
posted @ 2021-11-14 10:58 Mint-L 阅读(29) 评论(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(money_a 阅读全文
posted @ 2021-09-15 22:42 Mint-L 阅读(22) 评论(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(money_a 阅读全文
posted @ 2021-09-15 21:52 Mint-L 阅读(31) 评论(0) 推荐(0)
摘要: 初次学习Python,对于第一周的课程学习,学了Python的一些语言基础,很多知识与大一第一学期所学的c语言很相似,但有很多也是不同,如Python的输入语句是print,而c语言的输入语句是printf,c语言一个语句的结束都要用分号隔开,而Python则不需要,又如在Python中定义变量是不 阅读全文
posted @ 2021-09-05 19:24 Mint-L 阅读(11330) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-09-05 19:08 Mint-L 阅读(20) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示