📅  最后修改于: 2022-03-11 15:04:11.638000             🧑  作者: Mango
int variable_age= 72;
var body = @"{
" + "\n" +
@" ""Pclass"": ""2"",
" + "\n" +
@" ""Age"": "{variable_age}""
" + "\n" +
@"}";
request.AddParameter("application/json", body, ParameterType.RequestBody);