红桃七
发表于 2018-5-29 20:39:53
优秀!受益!
晤明
发表于 2018-5-30 10:25:38
支持小甲鱼,初学者的福音啊。
Tansir
发表于 2018-5-31 19:50:34
{:10_257:}
humblejohn
发表于 2018-6-1 16:00:20
支持,很好
宇内一粟
发表于 2018-6-7 10:55:22
{:5_106:}{:5_106:}{:5_106:}{:5_106:}{:5_106:}{:5_106:}
xiaodu0822
发表于 2018-6-7 13:54:19
fish_游鱼 发表于 2018-5-24 22:22
可以直接使用pip命令安装最新版本。比如可以在cmd中使用命令
非常感谢
学学看看
发表于 2018-6-8 19:35:30
学学看看
发表于 2018-6-8 19:51:06
hkz
发表于 2018-6-9 16:16:26
好玩,小甲鱼加油
stonejianbu
发表于 2018-6-9 23:37:14
受益匪浅{:10_254:}
阿C1221
发表于 2018-6-10 15:51:15
不错,练练手
followdao
发表于 2018-6-11 12:07:00
import easygui as g
import sys
while True:
g.msgbox("(。・∀・)ノ゙嗨,欢迎进入第一个界面小游戏^_^")
msg = "请问你希望在鱼C工作室学习到什么知识呢?"
title = "小游戏互动"
choices = ["谈恋爱", "编程", "OOXX", "琴其书画"]
choice = g.choicebox(msg, title, choices)
g.msgbox("你的选择是:", str(choice), "结果")
msg = "你希望重新开始小游戏吗?"
title = "请选择"
if g.ccbox(msg, title):
pass
else:
sys.exit(0)
执行后出错,请小甲鱼解惑,谢谢!
OK
Traceback (most recent call last):
File "E:\pystudy\studywithxiaojiayu.py", line 15, in <module>
g.msgbox("你的选择是:", str(choice), "结果")
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)
学学看看
发表于 2018-6-12 17:00:11
jxlpxcj
发表于 2018-6-12 17:18:18
import easygui as g
import os
file_list=[]
ext_list=('.py','.c','.cpp','.e')
ext_dict=dict()
count_dict=dict()
allcount=0
str1=''
def readfile():
global allcount
for file_line in file_list:
with open(file_line,encoding='gb18030',errors='ignore') as f:
for line in f:
if not line.isspace():
allcount+=1
count_dict.setdefault(os.path.splitext(file_line)+'count',0)
count_dict+'count']+=1
def findfile(file_dir): #递规文件夹 统计文件个数 并计录所有文件名
dir_list=os.listdir(file_dir)
os.chdir(file_dir)
for file in dir_list:
if file=='System Volume Information':
continue
if os.path.isdir(file):
findfile(file)
os.chdir(os.pardir)
pass
if os.path.isfile(file):
if os.path.splitext(file) in ext_list:
ext_dict.setdefault(os.path.splitext(file),0)
ext_dict]+=1
file_list.append(os.getcwd()+os.sep+file)
file_dir=g.diropenbox()
findfile(file_dir)
readfile()
msg='您目前共累积编写了%d行代码,完成进度%.2f%%\n离10万行代码还差%d行,请继续努力'%(allcount,(allcount/100000)*100,100000-allcount)
for i in ext_dict:
str1+='【'+i+'】源文件'+str(ext_dict.get(i))+'个,源代码'+str(count_dict.get(i+'count'))+'行\n'
g.textbox(msg,'统计结果',str1)
ycll1234
发表于 2018-6-12 17:50:19
感谢 分享啊幸苦幸苦
涂涂涂
发表于 2018-6-13 23:45:28
我怎感觉这个纯属于面向过程设计的人看的,自从学了java的我看着真不爽{:5_99:},看来还得往后学了
akyl56
发表于 2018-6-14 10:28:05
顶
myckjx
发表于 2018-6-22 21:17:13
15.1 Egstore没看明白
子羽一号
发表于 2018-6-23 11:06:59
呼叫大甲鱼……呼叫大甲鱼……压缩包里没有easyGui的官方文档了呀……在哪里可以找了哦????
wenwy
发表于 2018-6-24 13:11:29
201806241311