diff --git a/README.md b/README.md index 735ad7c7200..0bbd0896ca9 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ int main(){ // Eval the sum of the list char* result = pkpy_vm_eval(vm, "sum(a)"); - std::cout << result << std::endl; // 6 + printf("%s", result); // 6 // Free the resources pkpy_delete(result); diff --git a/README_zh.md b/README_zh.md index a7b49242bff..3bc41985849 100644 --- a/README_zh.md +++ b/README_zh.md @@ -63,7 +63,7 @@ int main(){ // 对列表进行求和 char* result = pkpy_vm_eval(vm, "sum(a)"); - std::cout << result << std::endl; // 6 + printf("%s", result); // 6 // 释放资源 pkpy_delete(result);