随笔分类 -  Python

随笔
摘要:#两个文件要放在同一目录中,包括图片 一、搭建游戏舞台主程序 #!/usr/bin/env python3#_*_coding:utf-8_*_ author ==$ VACyp import sysimport pygamefrom girl import Girl def build_pygwi 阅读全文
posted @ 2019-01-06 21:55 vacpy 阅读(385) 评论(0) 推荐(0)
摘要:file_path =(r'i:\vacpy\ch10\pi_digits.txt') #将文件路径存储在变量file_path中with open (file_path) as file_object: contents = file_object.read() print(contents)"" 阅读全文
posted @ 2018-12-09 14:31 vacpy 阅读(1241) 评论(0) 推荐(0)
摘要:active =Truewhile active: message =input("\nPlease input your name:\n") if message =='q': break print("welcome " + message + " come to our website!") 阅读全文
posted @ 2018-12-08 23:26 vacpy 阅读(36748) 评论(0) 推荐(2)