摘要: print(__file__) #打印当前文件的相对路径import osimport sysprint(os.path.abspath(__file__)) #绝对路径print(os.path.dirname(os.path.abspath(__file__))) #上一级目录print(os.path.dirname(os.path.dirname(os.path.a... 阅读全文
posted @ 2018-08-21 21:00 lanfriend 阅读(122) 评论(0) 推荐(0)
摘要: product_list = [ ('phone1',5000), ('phone2',4000), ('phone3',3000), ('phone4',2000), ('phone5',1000), ('phone6',100),]shopping_list = []salary = input 阅读全文
posted @ 2018-08-20 14:32 lanfriend 阅读(219) 评论(0) 推荐(0)