['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 details)
Built Distribution
py_cppstd-0.2.2-py3-none-any.whl
(12.7 kB
view details)
File details
Details for the file py_cppstd-0.2.2.tar.gz
.
File metadata
- Download URL: py_cppstd-0.2.2.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 313e7b4a3ec56da3414d957f44416177373aad2330f0a4b5893b66577c8a5a18 |
|
MD5 | 678048d9126619fad393ac929637f08c |
|
BLAKE2b-256 | 59caa32167a332d0991c062c8047b48f4bcd9782b160d7d9acc7bd06ea2c2010 |
Provenance
File details
Details for the file py_cppstd-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: py_cppstd-0.2.2-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d24a65d579e8dc30396fc29f538a80a7593c12b1f82c6f7e189190a99ed4bb2 |
|
MD5 | 3446a468e037481125796354da001639 |
|
BLAKE2b-256 | d27e1c4e06926993ead06e6fed915cf44710fa5a424b46280c9b1f0d6e37ab87 |