input函数出现的问题(Python)
摘要:
参考书,写下如下的程序: 1 # coding=utf-8 2 # 以上是为了能在文中添加中文的注释 3 4 def save_transaction(price, credit_card, description): 5 file = open("transaction.txt", "a") 6 file.write("%s%07d%16s\n" % (credit_card, price, description)) 7 file.close() 8 9 items = ["DONUT","LATTE 阅读全文
posted @ 2013-10-17 15:49 梦书 阅读(5997) 评论(0) 推荐(0) 编辑