摘要: import pygame import sys import random class Bird(object): """定义一个鸟类""" def __init__(self): """定义初始化方法""" self.birdRect = pygame.Rect(65, 50, 50, 50) 阅读全文
posted @ 2022-12-14 19:50 Kyaria 阅读(10) 评论(0) 推荐(0) 编辑
摘要: Sqlite3 import sqlite3 conn = sqlite3.connect('mrsoft.db') cursor = conn.cursor() cursor.execute('create table user (id int(10) primary key, name varc 阅读全文
posted @ 2022-12-14 19:31 Kyaria 阅读(26) 评论(0) 推荐(0) 编辑
摘要: Antmanor_message print("\n","="*10,"蚂蚁庄园的动态","="*10) file = open('message_txt','w') print("\n 即将显示……\n") Antmanor_message_ print("\n","="*10,"蚂蚁庄园的动态" 阅读全文
posted @ 2022-12-14 19:05 Kyaria 阅读(14) 评论(0) 推荐(0) 编辑
摘要: Division_apple def division(): print('\n 分苹果了 \n') apple=int(input('请输入苹果的个数')) children=int(input('请输入来了多少个小朋友')) result=apple//children remain=apple 阅读全文
posted @ 2022-12-13 15:19 Kyaria 阅读(15) 评论(0) 推荐(0) 编辑
摘要: Bmi bmi.py def fun_bmi(person,height,weight): print(person+'的身高'+str(height)+'米\t 体重:'+str(weight)+'千克') bmi=weight/(height*height) print(person+'的BMI 阅读全文
posted @ 2022-12-13 12:26 Kyaria 阅读(15) 评论(0) 推荐(0) 编辑
摘要: Geese class Geese: '''大雁类''' def __init__(self,beak,wing,claw): print('a56爆大奖在线娱乐是大雁类!a56爆大奖在线娱乐有以下特征:') print(beak) print(wing) print(claw) def fly(self,state): print( 阅读全文
posted @ 2022-12-13 12:21 Kyaria 阅读(21) 评论(0) 推荐(0) 编辑
摘要: Function_tips def function_tips(): import datetime mot=["今天星期一:\n坚持下去不是因为a56爆大奖在线娱乐很坚强,而是因为a56爆大奖在线娱乐别无选择。", "今天星期二:\n含泪播种的人一定能笑着收获。", "今天星期三:\n作对的事情比把事情做对更重要。", "今天星期四 阅读全文
posted @ 2022-12-13 12:14 Kyaria 阅读(18) 评论(0) 推荐(0) 编辑
摘要: Programmer_splice programmer_1='程序员甲:搞IT太辛苦了,a56爆大奖在线娱乐想换行.....怎么办?' programmer_2='程序员乙:敲一下回车键' print(programmer_1+'\n'+programmer_2) Idcard programer_1='你知道a56爆大奖在线娱乐的 阅读全文
posted @ 2022-12-13 11:03 Kyaria 阅读(15) 评论(0) 推荐(0) 编辑
摘要: Datetime import datetime #定义一个列表 mot=["今天星期一:\n坚持下去不是因为a56爆大奖在线娱乐很坚强,而是因为a56爆大奖在线娱乐别无选择。", "今天星期二:\n含泪播种的人一定能笑着收获。", "今天星期三:\n作对的事情比把事情做对更重要。", "今天星期四:\n命运给予a56爆大奖在线娱乐们的不是失望之酒,而 阅读全文
posted @ 2022-12-13 10:39 Kyaria 阅读(22) 评论(0) 推荐(0) 编辑
摘要: import sys import pygame pygame.init() size = width, height = 640,480 screen = pygame.display.set_mode(size) color = (0,0,0) ball = pygame.image.load( 阅读全文
posted @ 2022-12-01 21:07 Kyaria 阅读(28) 评论(0) 推荐(0) 编辑