['Using cpp std iostream lib in py']
Project description
Python C++ std iostream
Using C++ std lib iostream in py
Installtion
pip install py_cppstd
Import
from py_cppstd import std
then:
std.load()
variables are different after uses?
or
std = std()
iostream Usage
recommend to use ; when end line.
std.include('iostream') # include <iostream>
# outputs 114514 and '\n' and flush the stream
std.cout << 114514 << std.endl
num: int
std.cin >> num # input a number to num
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py_cppstd-0.2.2.tar.gz
(9.9 kB
view hashes)
Built Distribution
py_cppstd-0.2.2-py3-none-any.whl
(12.7 kB
view hashes)
Close
Hashes for py_cppstd-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d24a65d579e8dc30396fc29f538a80a7593c12b1f82c6f7e189190a99ed4bb2 |
|
MD5 | 3446a468e037481125796354da001639 |
|
BLAKE2b-256 | d27e1c4e06926993ead06e6fed915cf44710fa5a424b46280c9b1f0d6e37ab87 |