trotyl 最近的时间轴更新
trotyl's repos on GitHub
TypeScript · 65 人关注
angular-contrib
Community extension to Angular framework
Java · 1 人关注
arena
A homework aim at TDD and OO training in ThoughtWorks Lecture.
HTML · 1 人关注
es-module-explore
JavaScript · 0 人关注
agendas
TC39 meeting agendas
TypeScript · 0 人关注
angular
TypeScript · 0 人关注
angular-cli
CLI tool for Angular
HTML · 0 人关注
angular-cn
Chinese localization of angular.io
HTML · 0 人关注
Angular-IO
An library for angular apps to work with Socket.io with concise syntax.
TypeScript · 0 人关注
angular-issue-extend-differ-aot
TypeScript · 0 人关注
angular-webpack-starter
A starter kit for Angular
HTML · 0 人关注
angular.io
Website for Angular 2
JavaScript · 0 人关注
angular.js
AngularJS - HTML enhanced for web apps!
TypeScript · 0 人关注
angular.js-webpack-starter
A starter kit for Angular.js
HTML · 0 人关注
angular2-demo
A simple angular2 application for session in TreeNewBee project.
TypeScript · 0 人关注
anorexia
An experimental automation tool
TypeScript · 0 人关注
ant-design
🐜 A UI Design Language
TypeScript · 0 人关注
aot-reexport-issue
Angular AOT Compiler Re-export Issue Repro
0 人关注
Asserts
The static files for nginx to load.
TypeScript · 0 人关注
bookshelf-webapp-angular
A exercise of front-end part powered by angular2 of bookshelf project in ThoughtWorks lecture.
C# · 0 人关注
CodeHunt-Solution
The personal solutions of the code hunt platform in C#.
Java · 0 人关注
collection-homework
The first homework to check the java environment in the ThoughtWorks Da Jiang Tang.
C# · 0 人关注
Combee-WP8
组织消息通知中心Combee的Windows Phone客户端。
HTML · 0 人关注
compat-table
ECMAScript 5/6/7 compatibility tables
TypeScript · 0 人关注
conway-game-of-life
A demo project for TDD practice.
TypeScript · 0 人关注
demo-blog
TypeScript · 0 人关注
devkit
C++ · 0 人关注
EchoClientMFC
C# · 0 人关注
game-of-life
The exercise used in the Global Day of Code Retreat.
TypeScript · 0 人关注
github-demo
trotyl

trotyl

🏢  ThoughtWorks / Developer
V2EX 第 107772 号会员,加入于 2015-03-27 23:14:56 +08:00
32 S 31 B
trotyl 最近回复了
2016-03-12 18:43:37 +08:00
回复了 dsp2138 创建的主题 Python POST 请求这样构建对不对?为啥总不成功
你的 postdata 根本就没用过。。不懂你是要干什么。。
2016-03-07 21:26:58 +08:00
回复了 codespots 创建的主题 JavaScript JavaScript 算法初探——数组去重
@westooy 说的好像 indexOf 不是循环一样。。
2015-10-08 23:04:59 +08:00
回复了 hujianxin 创建的主题 程序员 一个关于类的编程基础问题!
要用面向对象的话,举个栗子,比如:
class Translator:
def __init__(self):
pass
def identify_language(self, source):
pass
def translate(self, source, destination_language='Chinise'):
pass

class BaiduTranslator(Translator):
...

class YoudaoTranslator(Translator):
...

按照传统面向对象差不多就是这样用一个基类或者接口,然后可以继承为不同的子类,子类才是用来实例化的,并且有对应方法的具体实现。。

但其实 Python 因为是动态类型应该也可以直接 Duck Typing 的。。

仅供参考。。-_-#
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2296 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 01:15 · PVG 09:15 · LAX 18:15 · JFK 21:15
Developed with CodeLauncher
♥ Do have faith in what you're doing.