摘要: 1、Readme 文件,告诉别人如何使用你的程序(必须) 2、代码加注释,让别人可以轻松读懂你的代码(必须) 3、目录结构要符合规范,每天单独一个目录,如Day1,Day2,Day3..(必须) 4、流程图,帮自己理清思路、帮别人更容易了解你的代码设计逻辑(必须) #推荐ProcessOn 5、bl 阅读全文
posted @ 2018-12-11 22:44 九头龙鳌龟 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 变量起名 1. 显示 2. nums_of_alex_gf = 19 这是对的 3. NumsOfAlexGf = 2 这是对的 4. names-of-alex-gf = 22 这是错的 5. 5name = 数字不能开头,na5me= 6. !name 特殊字符不能有,~!@¥% 7. name 阅读全文
posted @ 2018-12-11 21:33 九头龙鳌龟 阅读(123) 评论(0) 推荐(0) 编辑
摘要: import sysimport pygamedef run_game(): #initialize game and create a dispaly object pygame.init() screen = pygame.display.set_mode((1200,800)) pygame. 阅读全文
posted @ 2018-12-11 21:32 九头龙鳌龟 阅读(188) 评论(0) 推荐(0) 编辑
摘要: for i in range(10): if 1%2 !=0: print(i) continue i += 2 print(i) 阅读全文
posted @ 2018-12-11 21:30 九头龙鳌龟 阅读(105) 评论(0) 推荐(0) 编辑
摘要: bingo = '小甲鱼是鳖哥'answer = input ('请输入小甲鱼最想听的一句话:') while True: if answer == bingo: break answer = input('抱歉,错了,请重新输入(答案正确才能退出游戏):') print('哎哟,帅哦~')prin 阅读全文
posted @ 2018-12-11 21:28 九头龙鳌龟 阅读(111) 评论(0) 推荐(0) 编辑
摘要: score = int (input ('请输入一个分数:'))if 100 >= score >= 90: print ('A')elif 90 > score >= 80: print ('B')elif 80 > score >= 60: print ('C')elif 60 > score 阅读全文
posted @ 2018-12-11 21:27 九头龙鳌龟 阅读(101) 评论(0) 推荐(0) 编辑
摘要: score = int (input ('请教您的分数:'))if 100 >= score >= 90: print ('A')else: if 90 > score >= 80: print ('B') else: if 80 > score >= 60: print ('C') else: i 阅读全文
posted @ 2018-12-11 21:26 九头龙鳌龟 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 打飞机框架 加载背景音乐播放背景音乐(设置成单曲循环)我方飞机诞生interval = 0 while True if 用户是否电击了关闭按钮: 退出程序 interval += 1 if interval == 50: nterval = 0 小飞机诞生 小飞机移动一个位置 屏幕刷新 if 用户鼠 阅读全文
posted @ 2018-12-11 21:23 九头龙鳌龟 阅读(122) 评论(0) 推荐(0) 编辑
摘要: score = int ( input ( '请输入一个分数:' ) )if 100 >= score >= 90: print('A')if 90 > score >= 80: print('B')if 80 > score >= 80: print('C')if 60 > score >= 0: 阅读全文
posted @ 2018-12-11 21:23 九头龙鳌龟 阅读(108) 评论(0) 推荐(0) 编辑
摘要: import randomsecret = random.randint(1,10)print(' 我爱鱼C工作室 ')temp = input("不妨猜一下小甲鱼现在心里想的是哪个数字:")guess = int(temp)while guess != secret: temp = input(" 阅读全文
posted @ 2018-12-11 21:22 九头龙鳌龟 阅读(102) 评论(0) 推荐(0) 编辑
摘要: if guess == 8: print( "哇草,你是小甲鱼心里的蛔虫吗?") print( "哼,猜中了也没有奖励" )else: if guess > 8: print( "哥,大了大了~~~") else: print( "嘿,小了!小了!!")print ( "游戏结束,不玩啦~~~~ " 阅读全文
posted @ 2018-12-11 21:21 九头龙鳌龟 阅读(111) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-我爱鱼C,正如我爱小甲鱼,他那呱唧呱唧呱唧呱唧呱唧呱唧的声音,总缠绕于我的脑海,久久不肯散去... 阅读全文
posted @ 2018-12-11 21:20 九头龙鳌龟 阅读(208) 评论(0) 推荐(0) 编辑
摘要: from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello World!" if __name__ == '__main__': app.run() 阅读全文
posted @ 2018-12-11 21:20 九头龙鳌龟 阅读(100) 评论(0) 推荐(0) 编辑
摘要: print("I love fishc.com")print(5+3)print("well water"+" river")print("I love fish.com\n" + 8) 阅读全文
posted @ 2018-12-11 21:19 九头龙鳌龟 阅读(163) 评论(0) 推荐(0) 编辑
摘要: print(' 我爱鱼C工作室 ')temp = input("不妨猜一下小甲鱼现在心里想的是哪个数字:")guess = int(temp)if guess == 8: print("我草,你是小甲鱼心里的蛔虫吗?") print("哼,猜中了也没有奖励!")else: print("猜猜啦,小甲 阅读全文
posted @ 2018-12-11 21:19 九头龙鳌龟 阅读(115) 评论(0) 推荐(0) 编辑
摘要: print ("I will now count my chickens:") print ("Hens"), 25 + 30 / 6print ("Roosters"), 100 - 25 * 3 % 4 print ("Now I will count the eggs:") print (3 阅读全文
posted @ 2018-12-11 21:18 九头龙鳌龟 阅读(247) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-# A comment, this is so you can read your program later.# Anything after the # is ignored by python. print ("I could have code 阅读全文
posted @ 2018-12-11 21:17 九头龙鳌龟 阅读(186) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-print ("Hello World!你好")print ("Hello Again")print ("I like typing this.")print ("This is fun.")print ('Yay! Printing.')print ( 阅读全文
posted @ 2018-12-11 21:16 九头龙鳌龟 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 第一个程序 print “Hello World!” print“Hello Again” print “I like type” print "This is fun." 阅读全文
posted @ 2018-12-11 21:13 九头龙鳌龟 阅读(200) 评论(0) 推荐(0) 编辑