摘要: 1、Readme 文件,告诉别人如何使用你的程序(必须) 2、代码加注释,让别人可以轻松读懂你的代码(必须) 3、目录结构要符合规范,每天单独一个目录,如Day1,Day2,Day3..(必须) 4、流程图,帮自己理清思路、帮别人更容易了解你的代码设计逻辑(必须) #推荐ProcessOn 5、bl 阅读全文
posted @ 2018-12-11 22:44 九头龙鳌龟 阅读(246) 评论(0) 推荐(0) 编辑
摘要: list print(classmates) classmates.pop()print(classmates) classmates.pop(1)print(classmates) classmates[1] = 'Sarah'print(classmates) L = ['Apple', 123 阅读全文
posted @ 2018-12-28 10:50 九头龙鳌龟 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 字符串 print('包含中文的str') print(ord('A'))print(ord('中'))print(chr(66))print(chr(25991))print('\u4e2d\u6587')print('ABC'.encode('ascii'))print('中文'.encode( 阅读全文
posted @ 2018-12-28 09:57 九头龙鳌龟 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 字符串 print('I\'m ok.')print('I\'m learning\nPython.')print('\\\n\\')print('\\\t\\')print(r'\\\t\\')print('''linel...line2...line3''') print('''linellin 阅读全文
posted @ 2018-12-28 09:54 九头龙鳌龟 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 输出 print ('hello, world') print('The quick brown fox', 'jumps over', 'the lazy dog') print(300) print(100+200) print('100 + 200 = ', 100 + 200) 输入 nam 阅读全文
posted @ 2018-12-28 09:50 九头龙鳌龟 阅读(237) 评论(1) 推荐(0) 编辑
摘要: Python源码剖析 《Python源码剖析》是2008年06月电子工业出版社出版的图书,作者是陈儒。 《Python源码剖析》是2008年06月电子工业出版社出版的图书,作者是陈儒。 书 名Python源码剖析——深度探索动态语言核心技术作 者陈儒ISBN9787121068744类 别 图书 > 阅读全文
posted @ 2018-12-14 20:05 九头龙鳌龟 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 1、登录,三次登录锁定用户 用户信息的文件 黑名单的文件 1、黑名单里面检测,不让登录 2、用户名单密码判定 2、三级菜单 dic = { "省":{ "市":['县] } } #字典,列表 dic.keys() dic["省"].keys() dic["省"]["市"] dic["省"].keys 阅读全文
posted @ 2018-12-12 21:05 九头龙鳌龟 阅读(167) 评论(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) 编辑