Default arguments with default values in Thrift Python client
问题 I have Python client calls a Thrift service with some optional parameters like this: bool postTweet(1: required Tweet tweet, 2: i32 x = 100); If I tried to call this service from Python client without passing the optional parameter x, I get an exception: TypeError: postTweet() takes exactly 2 arguments (1 given) Any clues why I get this exception however it is optional parameter with a default value? 回答1: It's not possible to define a thrift function with default value (well at least from my