![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
Q丘丘Q
这个作者很懒,什么都没留下…
展开
-
笨方法习题43中的游戏场景切换方法记录
import sys from sys import exit class scene(object): def enter(self): exit() class engine(object): def __init__(self,scene_map): self.scene_map=scene_map def play(self):原创 2017-10-23 11:04:21 · 353 阅读 · 0 评论 -
codewars:Convert string to camel case
import string def to_camel_case(text): print text word=list(text) for i in range(0,len(word)-2): if word[i]=='-' or word[i]=='_' or word[i]=='=': word[i+1]=word[i+1].up原创 2017-11-06 19:24:03 · 756 阅读 · 0 评论